Skip to content

Instantly share code, notes, and snippets.

Created October 17, 2012 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3907291 to your computer and use it in GitHub Desktop.
Save anonymous/3907291 to your computer and use it in GitHub Desktop.
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