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

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

    <bug>
          <bug_id>30718</bug_id>
          
          <creation_ts>2015-02-10 12:17:32 +0300</creation_ts>
          <short_desc>gitery doesn&apos;t allow to store topgit branches</short_desc>
          <delta_ts>2017-10-29 05:17:44 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Infrastructure</classification>
          <product>Infrastructure</product>
          <component>gitery</component>
          <version>unspecified</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>30720</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>150104</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2015-02-10 12:17:32 +0300</bug_when>
    <thetext>There is a quite well-known and convenient tool for managing interdependent patches in Git branches -- topgit. (With respect to gear and packaging, I&apos;ve written down some notes: http://www.altlinux.org/Git/MergingBranches#topgit . It would be nice to manage the patches that get into the packages as topgit branches, and for maintainers to collectively work on them, and to communicate with upstream using topgit branches and generated patches.)


Unfortunately, girar doesn&apos;t allow to store the refs used by topgit:

~/TOOLS/topgit/topgit.gear $ tg remote imz@ALT
tg: Remote imz@ALT can now follow TopGit topic branches.
tg: Next, do: git fetch imz@ALT
~/TOOLS/topgit/topgit.gear $ git fetch imz@ALT
~/TOOLS/topgit/topgit.gear $ tg push -r imz@ALT
Counting objects: 13, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (13/13), 2.60 KiB | 0 bytes/s, done.
Total 13 (delta 6), reused 0 (delta 0)
remote: girar-update: Unrecognized ref name: refs/top-bases/tg_rename        
remote: error: hook declined to update refs/top-bases/tg_rename        
remote: girar-sendmail: email notification about `refs/heads/tg_rename&apos; update sent.        
remote: Repacking repository... done        
remote: Updating committer date cache... done        
To git.alt:packages/topgit.git
 * [new branch]      tg_rename -&gt; tg_rename
 ! [remote rejected] refs/top-bases/tg_rename -&gt; refs/top-bases/tg_rename (hook declined)
error: failed to push some refs to &apos;git.alt:packages/topgit.git&apos;
~/TOOLS/topgit/topgit.gear $</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150122</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2015-02-10 16:45:48 +0300</bug_when>
    <thetext>Well, there is an idea for a workaround when using topgit with gear: store special refs not as refs, but as gear-tags (which is of course necessary for building the package with gear, as described in http://www.altlinux.org/Git/MergingBranches#.D0.B2.D0.BC.D0.B5.D1.81.D1.82.D0.B5_.D1.81_gear ).

Then topgit should be taught to populate its special refs from gear-tags, and then repos kept at git.alt would be suitable for topgit-based workflows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150124</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2015-02-10 16:49:58 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; Well, there is an idea for a workaround when using topgit with gear: store
&gt; special refs not as refs, but as gear-tags 


&gt; Then topgit should be taught to populate its special refs from gear-tags, and
&gt; then repos kept at git.alt would be suitable for topgit-based workflows.

https://bugzilla.altlinux.org/show_bug.cgi?id=30718#c1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>