git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git pull --upload-pack reversion in git 2.5.0

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jul 30, 2015, 17:17 UTC
Message-ID
<vpqvbd1k1ke.fsf@anie.imag.fr>
In-Reply-To
<20150730154523.GA17002@kitenet.net>
Joey Hess <id@joeyh.name> writes:
Show 8 quoted lines
> 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@gmail.com>
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@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
=> Cc-ing Paul.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Joey HessNext: Joey Hess
Message 2 of 8 in “git pull --upload-pack reversion in git 2.5.0”
  1. Joey HessJul 30, 2015
  2. Matthieu MoyJul 30, 2015
  3. Joey HessJul 30, 2015
  4. Junio C HamanoJul 30, 2015
  5. pull.sh: quote $upload_pack when passing it to git-fetchMatthieu Moy, Jul 30, 2015
  6. Junio C HamanoJul 30, 2015
  7. Paul TanJul 31, 2015
  8. Junio C HamanoJul 31, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.