Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Infer and handle CVS->SVN->git conversion

  • Loading branch information...
commit fd161c41eb624b5d22a40a8956d6160f7fafdb1b 1 parent fc5b8e5
@davezarzycki authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 git-svn-abandon-fix-refs
View
4 git-svn-abandon-fix-refs
@@ -39,7 +39,7 @@ git for-each-ref --format='%(refname)' refs/remotes/svn/tags/* | while read tag_
env GIT_COMMITTER_NAME="$( git show -s --pretty='format:%an' "$tag_ref" )" \
GIT_COMMITTER_EMAIL="$( git show -s --pretty='format:%ae' "$tag_ref" )" \
GIT_COMMITTER_DATE="$( git show -s --pretty='format:%ad' "$tag_ref" )" \
- git tag -a -F - "$tag" "$target_ref"
+ git tag -a -F - "$(echo $tag | sed 's/%7E/./g')" "$target_ref"
git update-ref -d "$tag_ref"
done
@@ -47,7 +47,7 @@ done
# create local branches out of svn branches
git for-each-ref --format='%(refname)' refs/remotes/svn/ | while read branch_ref; do
branch=${branch_ref#refs/remotes/svn/}
- git branch "$branch" "$branch_ref"
+ git branch "$(echo $branch | sed 's/%7E/./g')" "$branch_ref"
git update-ref -d "$branch_ref"
done
Please sign in to comment.
Something went wrong with that request. Please try again.