Merge branch 'sk/send-pack-all-fix'
"git send-pack --all <there>" was broken when its command line option parsing was written in the 2.6 timeframe. * sk/send-pack-all-fix: git-send-pack: fix --all option when used with directory
This commit is contained in:
@ -225,7 +225,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
|
||||
* --all and --mirror are incompatible; neither makes sense
|
||||
* with any refspecs.
|
||||
*/
|
||||
if ((refspecs && (send_all || args.send_mirror)) ||
|
||||
if ((nr_refspecs > 0 && (send_all || args.send_mirror)) ||
|
||||
(send_all && args.send_mirror))
|
||||
usage_with_options(send_pack_usage, options);
|
||||
|
||||
|
Reference in New Issue
Block a user