[version 2.19.1] gpg issue in new Git for Windows release version 2.19.1

From: Himanshu Singh <hidden>
Date: 2018-10-11 09:45:57

Hi,
I use git-repo which makes use of Git for Windows and also uses the
gpg tool bundled in Git for Windows.

I am able to run the git-repo with Git-2.18.0-64-bit.exe, but recently
I updated the Git to  new release of Git for Windows 2.19.1 and that
does not work with git-repo tool. I found that basic issue is not with
Git, but with gpg bundled with latest Git version.

I have tested both version for below 4 cases and here are the test
results in below table:

Case Test Description Result For Git-2.18.0-64-bit.exe Result For
Git-2.19.1-64-bit.exe
CASE1: gpg import with default GNUPG Home [Result: SUCCESS for both versions]
CASE2: gpg import with setting environment variable for GNUPGHOME and
path provided in git style [Result: SUCCESS for both versions]
CASE3: gpg import with setting environment variable for GNUPGHOME and
path provided in windows style single slash \ is escaped by providing
double slash \\ [Result: SUCCESS for 2.18.0 but FAILED for 2.19.1]
CASE4: gpg import with setting environment variable for GNUPGHOME and
path provided in windows style with single slash \  replaced with
forward slash / [Result: SUCCESS for 2.18.0 but FAILED for 2.19.1]

I know the gpg version is changed in 2.19 release.
But somehow the Git-Repo tool, which I am using, creates GNUPGHOME
path as per CASE3 above. So right now I am able to use the tool with
older version of Git. It may be issue in future to not upgrade Git.
Please see if this makes any sense to fix this thing in gpg.


Here is the output with CASE3 (complete logs attached with the mail)
==============================================================================================================
=== CASE3: NOT Working with setting environment variable for GNUPGHOME
and path provided in windows style ====
=== IT LOOKS Like concatenate the current working directory to the
value of GNUPGHOME ========================
==============================================================================================================
hsingh@HSINGH-LT MINGW64 /c/gpgTesting
$ export GNUPGHOME=C:\\gpgTesting\\.gnupg

hsingh@HSINGH-LT MINGW64 /c/gpgTesting
$ echo $GNUPGHOME
C:\gpgTesting\.gnupg

hsingh@HSINGH-LT MINGW64 /c/gpgTesting
$ gpg --import
gpg: keyblock resource
'/c/gpgTesting/C:\gpgTesting\.gnupg/pubring.kbx': No such file or
directory

gpg: signal Interrupt caught ... exiting


--
Thanks,
Himanshu Singh.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help