From: Dave O'Neill Date: Thu, 21 Jun 2007 21:58:08 GMT Subject: Re: [PATCH] Let git-svnimport clean up SVK commit messages. Message-ID: <20070621215808.GD21065@magnesium.roaringpenguin.com> In-Reply-To: <1182438000.4031.11.camel@lt21223.campus.dmacc.edu> On Thu, Jun 21, 2007 at 10:00:00AM -0500, Jeffrey C. Ollie wrote: > This quickie Python script should convert the "tag branches" to regular > Git tags: > > import os > refs = os.popen('git-for-each-ref --format="%(objectname)%00%(refname)%00" refs/remotes/tags') > for line in refs: > [sha, ref] = line.split('\0')[:2] > os.system('git tag %s %s' % (ref[18:], sha)) Thanks! I'll give that a try. It would be nice if this sort of cleanup were part of git-svn in some way, though. I doubt I'll be the last person wanting an easy conversion from SVN. Cheers, Dave