diff options
| author | Luke Dashjr <[email protected]> | 2016-02-12 05:36:55 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2016-02-12 05:38:01 +0000 |
| commit | e98e3dde6a976a2c8f266ee963d6931fd4b37262 (patch) | |
| tree | 09ad0be5d31b545c1edd0b552d4618a5753d8daa /share | |
| parent | Merge pull request #5267 (diff) | |
| download | discoin-e98e3dde6a976a2c8f266ee963d6931fd4b37262.tar.xz discoin-e98e3dde6a976a2c8f266ee963d6931fd4b37262.zip | |
Bugfix: Only use git for build info if the repository is actually the right one
Also adds ability to disable check with BITCOIN_GENBUILD_NO_GIT=1 in the environment
Diffstat (limited to 'share')
| -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 ffa89ca6e..4965ef14c 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 "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then +if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" -a -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" -a "$(git status --porcelain -u no --ignored "$0" | cut -b1)" != "?" ]; then # clean 'dirty' status of touched files that haven't been modified git diff >/dev/null 2>/dev/null |