detach even when not on a branch

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

Branch: refs/heads/master
Commit: b37c72eb9602e17f298182204277b1c17a6df16f
Parents: 820724e
Author: Rafael Schloming <r...@alum.mit.edu>
Authored: Wed Apr 29 15:14:06 2015 -0400
Committer: Rafael Schloming <r...@alum.mit.edu>
Committed: Wed Apr 29 15:36:13 2015 -0400

----------------------------------------------------------------------
 bin/release.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b37c72eb/bin/release.sh
----------------------------------------------------------------------
diff --git a/bin/release.sh b/bin/release.sh
index 7668408..0c57d30 100755
--- a/bin/release.sh
+++ b/bin/release.sh
@@ -55,11 +55,11 @@ die()
     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 checkout --detach && \
+        bin/version.sh $VERSION && \
         git commit -a -m "Release $VERSION" && \
         git tag -m "Release $VERSION" $TAG && \
         echo "Run 'git push ${REMOTE} ${TAG}' to push the tag upstream."


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

Reply via email to