git repo still contains old svn tags

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

 



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
> 
> 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?

Sounds good to me.

-- 
Tanu

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


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

  Powered by Linux