diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-09-19 15:22:33 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-25 10:56:39 +0200 |
commit | 855fd498f9c43f761766e5759281497dd970f718 (patch) | |
tree | 763592904cbd13384318482a3cf8cdd3e9dcf8e7 | |
parent | 40d20412ff173e8eea2f456fd749663c8cabda18 (diff) | |
download | bitcoin-855fd498f9c43f761766e5759281497dd970f718.tar.xz |
build: fix release name strings for gitian builds
When building from a distdir as gitian does, checking for the .git dir
is not reliable. Instead, ask git if we're in a repo.
Rebase this into 0.9.3 branch after final to make sure that 0.9.4 will
have correct version strings in rcs.
Rebased-From: c65cc8c
-rwxr-xr-x | share/genbuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/genbuild.sh b/share/genbuild.sh index 0800b31229..679566e596 100755 --- a/share/genbuild.sh +++ b/share/genbuild.sh @@ -16,7 +16,7 @@ fi DESC="" SUFFIX="" LAST_COMMIT_DATE="" -if [ -e "$(which git 2>/dev/null)" -a -d ".git" ]; then +if [ -e "$(which git 2>/dev/null)" -a $(git rev-parse --is-inside-work-tree 2>/dev/null) = "true" ]; then # clean 'dirty' status of touched files that haven't been modified git diff >/dev/null 2>/dev/null |