summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2013-07-08 12:00:42 -0400
committerGravatar Karl Ramm <kcr@1ts.org>2013-07-08 12:00:42 -0400
commit09bec5b782854ad498d19e657493b8a0e4ad245a (patch)
tree7db210aee50f0c2a839f53338a8bf9e71c17eded
parentfa3cc23fe187dde3062b9afbd3863e769b8319e8 (diff)
git is whiny about ~s in versions
-rwxr-xr-xrelease5
1 files changed, 3 insertions, 2 deletions
diff --git a/release b/release
index d7682cb..5fb9f5a 100755
--- a/release
+++ b/release
@@ -13,7 +13,8 @@ fi
dch -b -v 1:${VERSION}-trunk release $VERSION
git add debian/changelog
git commit -m "release $VERSION"
-git tag $VERSION -m "release $VERSION"
+TAGNAME=$(echo $VERSION | sed -e 's/~/%7E/') # sigh
+git tag $TAGNAME -m "release $VERSION"
git checkout --detach
git clean -fxd
git rm .gitignore
@@ -30,7 +31,7 @@ git add -A
#git commit -m "release $VERSION"
TREE=$(git write-tree)
COMMIT=$(echo release artifact for $VERSION | git commit-tree $TREE -p HEAD -p remotes/origin/release/artifact)
-git tag release/$VERSION -m "release $VERSION processed for git archive" $COMMIT
+git tag release/$TAGNAME -m "release $VERSION processed for git archive" $COMMIT
git push origin $COMMIT:release/artifact
git reset --hard master
git checkout master