Eric Raymond wrote: > > I've used the following hack to make real tags out of SVN "tags": > > > > git for-each-ref --format="%(refname)" refs/remotes/tags/ | > > while read tag; do > > GIT_COMMITTER_DATE="$(git log -1 --pretty=format:"%ad" "$tag")" \ > > GIT_COMMITTER_EMAIL="$(git log -1 --pretty=format:"%ce" "$tag")" \ > > GIT_COMMITTER_NAME="$(git log -1 --pretty=format:"%cn" "$tag")" \ > > git tag -m "$(git log -1 --pretty=format:"%s%n%b" "$tag")" \ > > "${tag#refs/remotes/tags/}" "$tag" > > done > > > > Disclaimer: it worked last time I used it. Haven't checked if it got > > dusty since. > > Wow, that's ugly. But it does look like it ought to work. BTW, you'll also want to use some treatment that removes the empty commit that is generated from the 'svn copy' SVN commit for tagging. One option is to use 'git filter-branch --prune-empty ...', which will also drop other no-op commits. If you want to remove only the ones that come from tagging, creative use of git-diff-tree in the above loop will work. I suppose I was never bothered by the lack of automatic tagging because I rarely found a git-svn import to be immediately fit for publishing. Usually it took some grafting and other filtering to bring the history into shape anyway. Maybe now that the svn:mergeinfo support obviates the need for grafting, it's worth thinking about the rest. -- Thomas Rast trast@{inf,student}.ethz.ch -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html