vscode-gpg-indicator
vscode-gpg-indicator copied to clipboard
Git command fails in some environment when fetching required information
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
In WSL, you memory is correct:
Since I don't write code in Windows env, I cannot verify this behavior in Windows.
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.