diff options
author | Jan Lehnardt <jan@apache.org> | 2015-06-24 15:37:43 +0200 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2015-06-24 23:07:39 +0200 |
commit | 652513066b9d88295f9786bb2f0fd315463590f4 (patch) | |
tree | 869a47d1f1cf6b406cc8ab79302b3e96beac4e26 | |
parent | b644cfb1a95509a0d4fed46df18c9627dc053100 (diff) | |
download | couchdb-652513066b9d88295f9786bb2f0fd315463590f4.tar.gz |
fix git HEAD parsing, thanks @robertkowalski
-rwxr-xr-x | build-aux/couchdb-build-release.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/couchdb-build-release.sh b/build-aux/couchdb-build-release.sh index b914e45ef..215c8d919 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 |