vscode-gpg-indicator icon indicating copy to clipboard operation
vscode-gpg-indicator copied to clipboard

Git command fails in some environment when fetching required information

Open wdhongtw opened this issue 10 months ago • 2 comments

image

Unlike user.signingKey, lacking of commit.gpgSign setting in local scope (current git repo) seems to fail the git commit in some environment.

If my memory is correct, both commit.gpgSign user.signingKey will fallback to global sertting (in user home folder) when there is no such config in local scope. My memory may be wrong. In that case, we should support "command-failure" as "falsy/empty" value when reading / parsing git config output.

OS: Windows 11 Git: git version 2.45.2.vfs.0.2

wdhongtw avatar Jan 09 '25 18:01 wdhongtw

In WSL, you memory is correct: image

Since I don't write code in Windows env, I cannot verify this behavior in Windows.

AnnAngela avatar Jan 10 '25 02:01 AnnAngela

And the manual support your memory: https://git-scm.com/docs/git-config#FILES

The files are read in the order given above, with last value found taking precedence over values read earlier. When multiple values are taken then all values of a key from all files will be used.

AnnAngela avatar Jan 10 '25 02:01 AnnAngela