Joey Hess <id@xxxxxxxxxx> writes: > In git 2.1.4, I can run: git pull --upload-pack 'echo --foo' > > This also seems to work in 2.4.6, but in 2.5.0, the option parser > does something weird, apparently looking inside the quoted parameter > and parsing parameters in there: > > error: unknown option `foo' > usage: git fetch [<options>] [<repository> [<refspec>...]] This bisects down to: commit e3b601da2af53cbb9a63e59113d524a8d946ea12 (junio/pt/pull-optparse) Author: Paul Tan <pyokagan@xxxxxxxxx> Date: Tue Jun 2 22:22:53 2015 +0800 pull: use git-rev-parse --parseopt for option parsing To enable unambiguous parsing of abbreviated options, bundled short options, separate form options and to provide consistent usage help, use git-rev-parse --parseopt for option parsing. With this, simplify the option parsing code. Signed-off-by: Paul Tan <pyokagan@xxxxxxxxx> Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx> => Cc-ing Paul. -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html