<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>19334</bug_id>
          
          <creation_ts>2009-03-25 21:05:53 +0300</creation_ts>
          <short_desc>git-ls-remote is sensitive to the order of options and arguments</short_desc>
          <delta_ts>2018-08-08 19:58:16 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>git-core</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>19333</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>grenka</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87949</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-03-25 21:05:53 +0300</bug_when>
    <thetext>This bug is also present in git-1.6.1.3-alt1.

+++ This bug was initially created as a clone of Bug #19333 +++


If --tags is given at the end of the command line, it doesn&apos;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&apos;s possible to give an option at the end, for example &quot;git push ... --tags&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173300</commentid>
    <comment_count>1</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2018-08-08 19:03:30 +0300</bug_when>
    <thetext>Перевешиваю на p8, потому что всё ещё актуально.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173313</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2018-08-08 19:44:00 +0300</bug_when>
    <thetext>Reproducible with git-core-2.17.1-alt3 as well.
This behaviour corresponds to the documentation, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173314</commentid>
    <comment_count>3</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2018-08-08 19:55:48 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; Reproducible with git-core-2.17.1-alt3 as well.
&gt; This behaviour corresponds to the documentation, though.

Тогда закрываю, как &quot;Не баг, а фича&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173315</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2018-08-08 19:58:16 +0300</bug_when>
    <thetext>Это неправильная фича, пусть висит.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>