Skip to content

Commit

Permalink
Remove git_check_in_repo from genbuild.sh to fix gitian version string
Browse files Browse the repository at this point in the history
This removes the git hash from gitian-build zcash version strings when
built inside gitian (when the state of the working tree is clean and
corresponds to an annotated tag).
  • Loading branch information
softminus committed Oct 21, 2022
1 parent 15b7f93 commit acabec7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions share/genbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ else
exit 1
fi

git_check_in_repo() {
! { git status --porcelain -uall --ignored "$@" 2>/dev/null || echo '??'; } | grep -q '?'
}

DESC=""
SUFFIX=""
if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo share/genbuild.sh; then
if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" ] && [ -e "$(command -v git)" ] && [ "$(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

Expand Down

0 comments on commit acabec7

Please sign in to comment.