I’ve been reading this excellent guide to learn a thing or two about git, specifically how to work locally with git and remotely with Subversion. After importing a repository with a command similar to this:
git svn init -t tags -b branches -T trunk http://example.com/repository
git svn fetch
I found that I had no branches and no tags. Well, the repository in question didn’t have any branches at the time, but it did have tags. I knew that git must be doing something clever with the tags, because the command takes the -t option seen above. I looked through the guide and elsewhere on the web, and came up with nothing.
I emailed the author, Sam Vilain, and he kindly responded and answered my question. It turns out that, because tags can be modified after they are created in Subversion, the git importer brings them in as remote branches. They can all be viewed with the git branch -a.
I promised Sam that I would blog this solution so that others could find it (and hopefully not bug him), and he responded:
even better would be a patch to:
git-clone http://utsl.gen.nz/talks/git-svn/.git
Sam.
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.