From: Junio C Hamano Date: Thu, 24 Mar 2016 16:11:27 GMT Subject: Re: [PATCH] git-send-pack: Fix --all option when used with directory Message-ID: In-Reply-To: <1458750262-25765-1-git-send-email-stanislav@assembla.com> Stanislav Kolotinskiy writes: > Subject: Re: [PATCH] git-send-pack: Fix --all option when used with directory Please see "git shortlog --no-merges" output from recent history and notice that s/Fix/fix/ would make things more consistent. > When using git send-pack with --all option and a target directory, > usage message is being displayed instead of performing the actual > transmission. > > The reason for this issue is that refspecs variable is being > calculated in a different way comparing to previous versions, and > even though the number of refspecs (nr_refspecs) is 0, refspecs > contain all the arguments and switches passed to send-pack. Thanks for noticing; the above explanation however does not make it very clear why the symptom exhibits itself only when "directory" is given (it also is unclear if "target" being a directory is special, or if any remote repository specification, e.g. host:/path/to/dir, triggers the same problem).