[pulseaudio-discuss] git repo still contains old svn tags
Colin Guthrie
gmane at colin.guthr.ie
Tue Apr 23 16:12:59 PDT 2013
Hi,
When playing with the git repo, I see it still contains some heads with
the name "tags" e.g. refs/heads/tags/release-0.9.9
One tool I have here tries to interpret refs/heads/tags (probably badly)
and bails. Now this code should be more self tolerant, but having
recently done some git-svn conversions, I wonder if we shouldn't fix up
the legacy tag branches anyway?
e.g. if we run this code, it'll sort out the old "tags":
git for-each-ref --format='%(refname)' refs/heads/tags | cut -d / -f 4 |
grep ^release- | sed 's/^release-//' | while read ref; do git tag
"v$ref" "refs/heads/tags/release-$ref"; git branch -D
"tags/release-$ref"; done
git gc
I've tested this before and after an rsync of the git repo and it seems
to solve the problem.
I just search for references via "grep -r tags/" This should find the
refs of the tags... afer running the script above the
refs/heads/tags/release-* branches are instead converted to tags.
Does this make sense?
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited http://www.tribalogic.net/
Open Source:
Mageia Contributor http://www.mageia.org/
PulseAudio Hacker http://www.pulseaudio.org/
Trac Hacker http://trac.edgewall.org/
More information about the pulseaudio-discuss
mailing list