git repo still contains old svn tags

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

 



'Twas brillig, and Tanu Kaskinen at 24/04/13 12:36 did gyre and gimble:
> On Wed, 2013-04-24 at 00:12 +0100, Colin Guthrie wrote:
>> 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

>>
>> Does this make sense?
> 
> Sounds good to me.


Forgot to say, but this was done as people would likely have seen if
they had done a git pull.

Hope all is well with it :)

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