]> git.proxmox.com Git - libgit2.git/commit - src/transports/local.c
local: adjust to the common refspec parser
authorCarlos Martín Nieto <cmn@dwim.me>
Sun, 23 Nov 2014 20:34:45 +0000 (21:34 +0100)
committerCarlos Martín Nieto <cmn@dwim.me>
Sun, 23 Nov 2014 20:34:45 +0000 (21:34 +0100)
commitd5c84f67d311ed177ddfbd1c2645e23e46df5729
treed7911acf85cc3745459aaa20d5604b6bb0dc4621
parent3fade40e393e1ca74be7f475819fcaecc9f4dc83
local: adjust to the common refspec parser

We no longer have NULL strings, but empty ones and duplicate the sides
if necessar, so the first check will never do anything.

While in the area, remove unnecessary ifs and early returns.
src/transports/local.c