From 09bec5b782854ad498d19e657493b8a0e4ad245a Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 8 Jul 2013 12:00:42 -0400 Subject: git is whiny about ~s in versions --- release | 5 +++-- 1 file 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 -- cgit v1.2.3