qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject [1/2] qpid-proton git commit: use the current branch instead of hardcoding origin/master
Date Mon, 22 Dec 2014 16:28:29 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master 3bffa07d6 -> 63748abe4


use the current branch instead of hardcoding origin/master


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

Branch: refs/heads/master
Commit: 9fd5c36d9b1c636fb3fff333b0d14357f7cd0743
Parents: 3bffa07
Author: Rafael Schloming <rhs@alum.mit.edu>
Authored: Mon Dec 22 11:23:35 2014 -0500
Committer: Rafael Schloming <rhs@alum.mit.edu>
Committed: Mon Dec 22 11:23:35 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/9fd5c36d/bin/release.sh
----------------------------------------------------------------------
diff --git a/bin/release.sh b/bin/release.sh
index 6c09655..d98e9f6 100755
--- a/bin/release.sh
+++ b/bin/release.sh
@@ -51,7 +51,9 @@ die()
     if [ -n "$(git status -uno --porcelain)" ]; then
         die must release from a clean checkout
     fi
-    git checkout -b $VERSION origin/master
+    BRANCH=$(git symbolic-ref --short HEAD)
+    REMOTE=$(git config branch.${BRANCH}.remote)
+    git checkout -b $VERSION ${REMOTE}/${BRANCH}
     bin/version.sh $VERSION
     git commit -a -m "Release $VERSION"
 )


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


Mime
View raw message