Repository: qpid-proton
Updated Branches:
  refs/heads/master 72a49feff -> bcbbf2574


fixed export to work with 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/bcbbf257
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/bcbbf257
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/bcbbf257

Branch: refs/heads/master
Commit: bcbbf2574b840390318bd7e58e72292433efcce8
Parents: 72a49fe
Author: Rafael Schloming <[email protected]>
Authored: Fri Jan 23 16:13:56 2015 -0500
Committer: Rafael Schloming <[email protected]>
Committed: Fri Jan 23 16:13:56 2015 -0500

----------------------------------------------------------------------
 bin/export.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/bcbbf257/bin/export.sh
----------------------------------------------------------------------
diff --git a/bin/export.sh b/bin/export.sh
index 549e23b..a0d7568 100755
--- a/bin/export.sh
+++ b/bin/export.sh
@@ -43,7 +43,7 @@ fi
 ##
 (
     cd ${SRC}
-    BRANCH=$(git symbolic-ref --short HEAD)
-    ARCHIVE=$DIR/qpid-proton-${BRANCH}.tgz
-    git archive --format=tgz --prefix=qpid-proton-${BRANCH}/ ${BRANCH} -o 
${ARCHIVE}
+    TAG=$(git describe --tags --always)
+    ARCHIVE=$DIR/qpid-proton-${TAG}.tgz
+    git archive --format=tgz --prefix=qpid-proton-${TAG}/ ${TAG} -o ${ARCHIVE}
 )


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to