[tor-commits] [tor-messenger-build/master] Bug 20757: fix gpg_wrapper with git >= 2.10.0-rc0

boklm at torproject.org boklm at torproject.org
Mon Oct 2 16:43:38 UTC 2017


commit 043cc5f96113c6367e29be6064867148c55fea20
Author: Nicolas Vigier <boklm at 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]}



More information about the tor-commits mailing list