lrytz / asm-legacy-svn-clone

Clone of ASM's SVN repo - see

Home Page:https://github.com/lrytz/asm/issues/1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HOWTO: git - svn - tags - upgrading - etc

lrytz opened this issue · comments

Initial clone

git svn clone svn://svn.forge.objectweb.org/svnroot/asm -T trunk/asm -t tags --prefix=upstream/

Create Tags (from SO), prints a list of commands that create the tags:

git for-each-ref --format="%(refname:short) %(objectname)" refs/remotes/upstream/tags |  cut -d / -f 3- |
while read ref
do
  echo git tag -a $ref -m '"import tag from svn"'
done

Push Tags

git push --tags

Get Latest from SVN

git svn fetch
git merge upstream/trunk
==> create tags again