tag-release: actually push data out unless --no-push is given
authorH. Peter Anvin <hpa@zytor.com>
Sun, 26 Feb 2012 06:02:08 +0000 (22:02 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 26 Feb 2012 06:02:08 +0000 (22:02 -0800)
Rather than just printing a list of commands, do them, unless
--no-push is given...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
misc/tag-release

index c42bbd5..62e3eba 100755 (executable)
@@ -43,8 +43,10 @@ git commit -m "NASM $version"
 git tag -a -m "NASM $version" "$tag"
 
 if [ $push = 1 ]; then
-    echo "git push $repo $branch"
-    echo "git push $repo $tag"
-    echo "git push --tags $repo"
+    set -x
+    git push $repo $branch
+    git push $repo $tag
+    git push --tags $repo
+    set +x
 fi