Bug 19333 - git-ls-remote is sensitive to the order of options and arguments
Summary: git-ls-remote is sensitive to the order of options and arguments
Status: CLOSED WONTFIX
Alias: None
Product: Branch 4.0
Classification: Distributions
Component: git (show other bugs)
Version: 4.0
Hardware: all Linux
: P2 minor
Assignee: Nobody's working on this, feel free to take it
QA Contact: Q.A. 4.0
URL:
Keywords:
Depends on: 19334
Blocks:
  Show dependency tree
 
Reported: 2009-03-25 21:04 MSK by Ivan Zakharyaschev
Modified: 2014-11-05 20:17 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2009-03-25 21:04:18 MSK
git-1.5.4.5-alt3

If --tags is given at the end of the command line, it doesn't work:

$ git ls-remote --tags git://repo.or.cz/git.git | head
d5aef6e4d58cfe1549adef5b436f3ace984e8c86	refs/tags/gitgui-0.10.0
3d654be48f65545c4d3e35f5d3bbed5489820930	refs/tags/gitgui-0.10.0^{}
33682a5e98adfd8ba4ce0e21363c443bd273eb77	refs/tags/gitgui-0.10.1
729ffa50f75a025935623bfc58d0932c65f7de2f	refs/tags/gitgui-0.10.1^{}
ca9b793bda20c7d011c96895e9407fac2df9648b	refs/tags/gitgui-0.10.2
95dcfa3633004da0049d3d0fa03f80589cbcaf31	refs/tags/gitgui-0.10.2^{}
8c178f72b54f387b84388d093a920ae45b8659dd	refs/tags/gitgui-0.11.0
1c1fe1005c9dacc05a34eb892ae20ebb1904a33b	refs/tags/gitgui-0.11.0^{}
15c7170c8c1f6d4f8b8aa539987a92c45d06be9e	refs/tags/gitgui-0.12.0
e612120d232a5ef04dcf22fc92741565ebb4d0c8	refs/tags/gitgui-0.12.0^{}
$ git ls-remote git://repo.or.cz/git.git --tags | head
$ 

This behavior breaks the expectations, because in other git subroutines, it's possible to give an option at the end, for example "git push ... --tags".
Comment 1 Michael Shigorin 2014-11-05 20:17:07 MSK
В 4.0/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.