3 git for-each-ref
--format="%(refname)" refs
/remotes |
4 sed "s/refs\/remotes\///" |
7 git update-ref refs
/heads
/svn
/$ref refs
/remotes
/$ref
10 git for-each-ref
--format="%(refname)" refs
/heads
/svn |
11 sed "s/refs\/heads\/svn\///" |
14 if ! git-rev-parse refs
/remotes
/$ref > /dev
/null
2>&1
16 git update-ref
-d refs
/heads
/svn
/$ref refs
/heads
/svn
/$ref