You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2015/03/31 11:06:12 UTC

qpid-proton git commit: fixed release.sh to work on tags

Repository: qpid-proton
Updated Branches:
  refs/heads/master ea9ca783c -> 938f4cb8c


fixed release.sh to work on tags


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/938f4cb8
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/938f4cb8
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/938f4cb8

Branch: refs/heads/master
Commit: 938f4cb8c2e31c2bcc20fba7d973214ee38d650a
Parents: ea9ca78
Author: Rafael Schloming <rh...@alum.mit.edu>
Authored: Tue Mar 31 05:05:51 2015 -0400
Committer: Rafael Schloming <rh...@alum.mit.edu>
Committed: Tue Mar 31 05:05:51 2015 -0400

----------------------------------------------------------------------
 bin/release.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/938f4cb8/bin/release.sh
----------------------------------------------------------------------
diff --git a/bin/release.sh b/bin/release.sh
index 68def92..984d7d5 100755
--- a/bin/release.sh
+++ b/bin/release.sh
@@ -51,9 +51,13 @@ die()
     if [ -n "$(git status -uno --porcelain)" ]; then
         die must release from a clean checkout
     fi
-    BRANCH=$(git symbolic-ref --short HEAD)
-    REMOTE=$(git config branch.${BRANCH}.remote)
-    git checkout --detach ${REMOTE}/${BRANCH}
+    BRANCH=$(git symbolic-ref -q --short HEAD)
+    if [ -n "${BRANCH}" ]; then
+        REMOTE=$(git config branch.${BRANCH}.remote)
+        git checkout --detach ${REMOTE}/${BRANCH}
+    else
+        REMOTE="origin"
+    fi
     bin/version.sh $VERSION
     git commit -a -m "Release $VERSION"
     git tag -m "Release $VERSION" $VERSION


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org