diff options
| author | Cory Fields <[email protected]> | 2014-09-19 15:22:33 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2014-09-19 18:18:42 -0400 |
| commit | c65cc8cde30dd34a81962fda51a754f1cc0bdde8 (patch) | |
| tree | 6f19cdfc6bd3605a14aef2ccc09a49a07ebe0c1c /share/genbuild.sh | |
| parent | Merge pull request #4944 (diff) | |
| download | discoin-c65cc8cde30dd34a81962fda51a754f1cc0bdde8.tar.xz discoin-c65cc8cde30dd34a81962fda51a754f1cc0bdde8.zip | |
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.
Diffstat (limited to 'share/genbuild.sh')
| -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 0800b3122..679566e59 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 |