Skip to content

Instantly share code, notes, and snippets.

/gist:3907291
Created Oct 17, 2012

Embed
What would you like to do?
pushd -q ruby.gateway.git
changesets=`git --bare svn fetch -q`
if [ -z $changesets ]
then
# ok
else
echo $changesets
setopt xtrace
for i in `svn ls http://svn.ruby-lang.org/repos/ruby/tags | sed 's,/$,,'`
do
git --bare tag -f $i svn/tags/$i
done
git --bare push --dry-run --tags github -- \
`git --bare for-each-ref --format='%(refname:short)' refs/remotes/svn \
| fgrep -v tags \
| sed "s,svn/\(.\+\),svn/\1:\1,"`
unsetopt xtrace
fi
popd -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.