fetch --no-tags with and w/o --all
Hello
$ git --version git version 1.7.10.4
$ git fetch origin --no-tags does what it says
$ git fetch --all --no-tags still gets all the tags from the remote.
Is this known?
Thanks.
Signature · 3 lines
Cristian Tibirna (1-418-) 656-2131 / 4340 Laval University - Quebec, CAN ... http://www.giref.ulaval.ca/~ctibirna Research professional at GIREF ... [email protected]
Quoted 5 lines · Cristian Tibirna
Hello
$ git --version git version 1.7.10.4
Quoted 7 lines
$ git fetch origin --no-tags does what it says$ git fetch --all --no-tags still gets all the tags from the remote.Is this known?
Because --all (or --multiple) to iterate through all remotes does not pass accept any command line refspecs, using these options with --no-tags and/or --tags should be diagnosed as an error, but it appears that the error checking is not done.
Quoted 13 lines · Junio C Hamano
Quoted 11 lines · Cristian Tibirna
Hello
$ git --version git version 1.7.10.4$ git fetch origin --no-tags does what it says$ git fetch --all --no-tags still gets all the tags from the remote.
Quoted 6 lines
Quoted 1 line
Is this known?
Because --all (or --multiple) to iterate through all remotes does not pass accept any command line refspecs, using these options with --no-tags and/or --tags should be diagnosed as an error, but it appears that the error checking is not done.
Or we could just pass them through. Looks like this was already fixed by 8556646 (fetch --all: pass --tags/--no-tags through to each remote, 2012-09-05), which is in v1.7.12.2 and higher.
-Peff
Quoted 17 lines · Jeff King
Quoted 15 lines · Junio C Hamano
Quoted 12 lines · Cristian Tibirna
Hello
$ git --version git version 1.7.10.4$ git fetch origin --no-tags does what it says$ git fetch --all --no-tags still gets all the tags from the remote.Is this known?
Quoted 8 lines
Quoted 4 lines
Because --all (or --multiple) to iterate through all remotes does not pass accept any command line refspecs, using these options with --no-tags and/or --tags should be diagnosed as an error, but it appears that the error checking is not done.
Or we could just pass them through. Looks like this was already fixed by 8556646 (fetch --all: pass --tags/--no-tags through to each remote, 2012-09-05), which is in v1.7.12.2 and higher.
;-) No wonder this looked somewhat familiar.
Quoted 5 lines · Junio C Hamano
Quoted 3 lines
Or we could just pass them through. Looks like this was already fixed by 8556646 (fetch --all: pass --tags/--no-tags through to each remote, 2012-09-05), which is in v1.7.12.2 and higher.
;-) No wonder this looked somewhat familiar.
I still find it somewhat gross that we actually re-construct the command-line from the parsed flag variables. It seems like it would be easier to simply propagate the argv we got in the first place, and then we would not have any chance of omitting a new option that is added later.
Probably not worth worrying about now, though, as the fix is long since shipped. The next person who is adding an option can look at doing that refactoring. And it may be that there are some options we don't propagate intentionally (I didn't look closely).
-Peff