Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Brian May Newsgroups: linux.debian.maint.python Subject: Re: git-dpm (was Re: Bug#729956: Forwarded upstream) Date: Thu, 07 Sep 2017 01:30:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Sep 6 23:28:40 2017 Old-Return-Path: X-Amavis-Spam-Status: No, score=-3.38 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, FVGT_m_MULTI_ODD=0.02, HTML_MESSAGE=2, LDO_WHITELIST=-5, MONEY=0.5, STOCKLIKE=1] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_60e058748f1a31ed09c4c1a0d69f9ef5" X-Sender: brian@linuxpenguins.xyz X-Mailing-List: archive/latest/15178 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/867966fb4a4da2f925568a8f98617197@linuxpenguins.xyz Approved: robomod@news.nic.it Lines: 100 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 07 Sep 2017 09:28:11 +1000 X-Original-Message-ID: <867966fb4a4da2f925568a8f98617197@linuxpenguins.xyz> X-Original-References: <1384861181.23137.1.camel@debiousci.pietrobattiston.it> <20170906150846.x3g3iz7qsiiclz57@an3as.eu> <87bmmn26i2.fsf@wavexx.thregr.org> <20170906202443.x46qk7jnffznsyxa@an3as.eu> <87fubzef9u.fsf@wavexx.thregr.org> <20170906205007.2pugvkvlo77n7stc@an3as.eu> <87efrjedj6.fsf@wavexx.thregr.org> Xref: csiph.com linux.debian.maint.python:9796 --=_60e058748f1a31ed09c4c1a0d69f9ef5 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII On 2017-09-07 08:42, Scott Kitterman wrote: > Conveniently, we already decided to switch: > > https://wiki.debian.org/Python/GitPackagingPQ It was annoying me that these instructions were missing the last steps on how to switch the default branch to debian/master and delete the old branch. These steps are very important to: (a) prevent confusion on which branch to use. (b) prevent confusion on qa.debian.org, which uses the default branch to check that the git version. === cut === ssh git.debian.org cd "/git/python-modules/packages/$1.git" git symbolic-ref HEAD refs/heads/debian/master exit cd "$TMP" git push origin :master === cut === I also have a script to automate the entire conversion, and assuming the git repository is up-to-date and nobody is withholding pushes, it seems to work well. /srv/home/users/bam/convert on git.debian.org --=_60e058748f1a31ed09c4c1a0d69f9ef5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

On 2017-09-07 08:42, Scott Kitterman wrote:

= Conveniently, we already decided to switch:

https://wiki.debian.org/Python/GitPackagingPQ
=  
=  
= It was annoying me that these instructions were missing the last steps on h= ow to switch the default branch to debian/master and delete the old branch= =2E
=  
= These steps are very important to:
=  
= (a) prevent confusion on which branch to use.
= (b) prevent confusion on qa.debian.org, which uses the default branch to ch= eck that the git version.
=  
=  
= =3D=3D=3D cut =3D=3D=3D
ssh git.debian.org
cd "/git/python-modules/pack=
ages/$1.git"
git symbolic-ref HEAD refs/he=
ads/debian/master
exit

cd "$TMP"
git push origin :master

=3D=3D=3D cut =3D=3D=3D

= I also have a script to automate the entire conversion, and assuming the gi= t repository is up-to-date and nobody is withholding pushes, it seems to wo= rk well. 

/srv/home/users/bam/convert on git.debia= n.org

--=_60e058748f1a31ed09c4c1a0d69f9ef5--