mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
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.
This commit is contained in:
parent
2fc6c67400
commit
c65cc8cde3
@ -16,7 +16,7 @@ fi
|
|||||||
DESC=""
|
DESC=""
|
||||||
SUFFIX=""
|
SUFFIX=""
|
||||||
LAST_COMMIT_DATE=""
|
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
|
# clean 'dirty' status of touched files that haven't been modified
|
||||||
git diff >/dev/null 2>/dev/null
|
git diff >/dev/null 2>/dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user