diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2018-04-09 12:11:18 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-01 01:24:18 +0100 |
commit | fb0c5ece9f061e0093ed86c67d6519bfadcb1dd0 (patch) | |
tree | 0e9337b6f083d61e7c3146c5e0f8a5950b8a7c7e | |
parent | 6251fa3722c0376da5dd5baff4176a81e4c72e95 (diff) | |
download | hlupak-fb0c5ece9f061e0093ed86c67d6519bfadcb1dd0.tar.gz |
fix(git-svn-fix-tags): Fix for sword SVN
-rwxr-xr-x | git-svn-fix-tags.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-svn-fix-tags.sh b/git-svn-fix-tags.sh index ee4faf5..3227620 100755 --- a/git-svn-fix-tags.sh +++ b/git-svn-fix-tags.sh @@ -3,12 +3,12 @@ set -x reponame=$(git config svn-remote.svn.url|tr '/' '\n'|tail -n1) #remotes/tags/release-0-7-8 -git for-each-ref refs/remotes/tags | cut -d / -f 4- \ +git for-each-ref refs/remotes/origin/tags | cut -d / -f 5- \ | while read oldref do ref=$(echo $oldref|sed -e "s/$reponame-*//") echo "Converting branch $oldref to tag ${ref}." git tag -a "$ref" -m"say farewell to SVN" \ - "refs/remotes/tags/$oldref" && \ + "refs/remotes/origin/tags/$oldref" && \ git branch -r -d "tags/$oldref" >/dev/null 2>&1 done |