Check gpg version before setting --weak-digest

This commit is contained in:
Matt Corallo
2017-03-06 16:13:40 -05:00
parent 72fb5158b1
commit f20e664f40
2 changed files with 16 additions and 4 deletions

View File

@ -43,7 +43,7 @@ IS_SIGNED () {
export BITCOIN_VERIFY_COMMITS_ALLOW_REVSIG=0
fi
if ! git -c "gpg.program=${DIR}/gpg.sh" verify-commit $1 > /dev/null 2>&1; then
if ! git -c "gpg.program=${DIR}/gpg.sh" verify-commit $1 > /dev/null; then
return 1;
fi