commit 043cc5f96113c6367e29be6064867148c55fea20 Author: Nicolas Vigier boklm@torproject.org Date: Tue Aug 8 16:44:15 2017 +0200
Bug 20757: fix gpg_wrapper with git >= 2.10.0-rc0
Thanks to dcf for finding the cause of the problem. --- rbm.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/rbm.conf b/rbm.conf index d7aaee7..060d91f 100644 --- a/rbm.conf +++ b/rbm.conf @@ -203,8 +203,11 @@ gpg_wrapper: | SET gpg_kr = '--keyring ' _ path(c('gpg_keyring'), path(c('gpg_keyring_dir'))) _ ' --no-default-keyring'; END; -%] - if [ $# -eq 4 ] && [ "$1" = '--status-fd=1' ] \ - && [ "$2" = '--verify' ] + # git >= 2.10.0-rc0 is calling gpg with 5 args. See #20757 + if ( [ $# -eq 4 ] && [ "$1" = '--status-fd=1' ] \ + && [ "$2" = '--verify' ] ) \ + || ( [ $# -eq 5 ] && [ "$1" = '--status-fd=1' ] \ + && [ "$2" = '--keyid-format=long' ] && [ "$3" = '--verify' ] ) then [% c('gpg_bin') %] [% c('gpg_args') %] --with-fingerprint [% gpg_kr %] "$@" | sed 's/^[GNUPG:] EXPKEYSIG /[GNUPG:] GOODSIG /' exit ${PIPESTATUS[0]}
tor-commits@lists.torproject.org