Skip to content

Commit

Permalink
Merge pull request #650 from qtumproject/neil/fix-build-desc-script
Browse files Browse the repository at this point in the history
Fix build description
  • Loading branch information
qtum-neil authored Jan 29, 2019
2 parents 63479e3 + c53ca89 commit 6f6aa7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion share/genbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" -a -e "$(which git 2>/dev/null)" -a "$(
# if latest commit is tagged and not dirty, then override using the tag name
RAWDESC=$(git describe --abbrev=0 2>/dev/null)
if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC 2>/dev/null)" ]; then
git diff-index --quiet HEAD -- && DESC=$RAWDESC
git diff-index --quiet HEAD --
DESC=$RAWDESC
fi

# otherwise generate suffix from git, i.e. string like "59887e8-dirty"
Expand Down

0 comments on commit 6f6aa7c

Please sign in to comment.