git repo still contains old svn tags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux