From: Matthieu Moy Date: Thu, 30 Jul 2015 17:17:05 GMT Subject: Re: git pull --upload-pack reversion in git 2.5.0 Message-ID: In-Reply-To: <20150730154523.GA17002@kitenet.net> Joey Hess 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 [] [ [...]] This bisects down to: commit e3b601da2af53cbb9a63e59113d524a8d946ea12 (junio/pt/pull-optparse) Author: Paul Tan 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 Signed-off-by: Junio C Hamano => Cc-ing Paul. -- Matthieu Moy http://www-verimag.imag.fr/~moy/