Permalink
Browse files

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
  • Loading branch information...
1 parent 40d2041 commit 855fd498f9c43f761766e5759281497dd970f718 @theuni theuni committed with laanwj Sep 19, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 share/genbuild.sh
View
@@ -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

0 comments on commit 855fd49

Please sign in to comment.