[Pkg-security-team] Failure running git ls-remote HEAD
Raphael Hertzog
hertzog at debian.org
Mon Aug 22 12:26:34 UTC 2016
Hi,
On Mon, 22 Aug 2016, Gianfranco Costamagna wrote:
> ssh git.debian.org
> cd /git/pkg-security/
> cd $REPO.git
> cat HEAD
> some repositories are using "master", some others "debian/master" as debian branch.
hertzog at moszumanska:/git/pkg-security$ grep HEAD setup-repository
git symbolic-ref HEAD refs/heads/debian/master
So if you use the "setup-repository" script of our team to create the
initial repository, then you have HEAD pointing to debian/master
and you obviously need a debian/master branch so that it works.
Our documentation on https://wiki.debian.org/Teams/pkg-security tells to
use this script and indicates that we should follow DEP-14 on this topic.
> The wiki suggests to use debian/master, I personally don't know (never tried) how
> to convert into that workflow, and I manually edited the HEAD files for the packages
> I maintain to point to master instead.
> (I know this is bad, a common workflow will be better indeed)
Seriously? This has nothing to do with "workflow". It's just a matter of
doing the work in the correct branch.
Or to use --debian-branch=debian/master with git-buildpackage (personally
I need it only for gbp import-orig as otherwise I have configured
git-buildpackage to not complain about usage of non-default branches).
$ cat ~/gbp.confg
[DEFAULT]
pristine-tar = True
cleaner = /bin/true
[buildpackage]
sign-tags = True
export-dir = ../build-area/
ignore-branch = True
ignore-new = True
[import-orig]
filter-pristine-tar = True
[pq]
patch-numbers = False
> In case somebody has a "clone-convert-upload-changeHEAD" script, I'll be happy to use it :)
(not need to clone a new repo and upload)
On your current clone:
$ git checkout master
$ git checkout -b debian/master
$ git branch -D master
$ git push origin debian/master :master
On git.debian.org (withing the corresponding repository), you need to run
"git symbolic-ref HEAD refs/heads/debian/master" if you want to change
HEAD to point to debian/master.
> for now, I think I fixed all the HEAD files of the various repositories, based on the used workflow.
Please let's try to use debian/master everywhere. And the next time you
don't know how to deal with something, just ask for help. :-)
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/
More information about the Pkg-security-team
mailing list