You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/07/22 07:29:44 UTC

[27/50] couchdb commit: updated refs/heads/developer-preview-2.0 to 2a31bca

fix git HEAD parsing, thanks @robertkowalski


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

Branch: refs/heads/developer-preview-2.0
Commit: 652513066b9d88295f9786bb2f0fd315463590f4
Parents: b644cfb
Author: Jan Lehnardt <ja...@apache.org>
Authored: Wed Jun 24 15:37:43 2015 +0200
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Wed Jun 24 23:07:39 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/65251306/build-aux/couchdb-build-release.sh
----------------------------------------------------------------------
diff --git a/build-aux/couchdb-build-release.sh b/build-aux/couchdb-build-release.sh
index b914e45..215c8d9 100755
--- a/build-aux/couchdb-build-release.sh
+++ b/build-aux/couchdb-build-release.sh
@@ -24,8 +24,8 @@ cd src/
 for repo in *; do
   cd $repo
   mkdir ../../$RELDIR/src/$repo
-  # todo, make work for tags
-  git archive `git rev-parse --abbrev-ref HEAD` | tar -xC ../../$RELDIR/src/$repo/
+  git_ish=`git symbolic-ref -q --short HEAD || git describe --tags --exact-match`
+  git archive $git_ish | tar -xC ../../$RELDIR/src/$repo/
   cd ..
 done