Merge branch 'jb/gpg-program-variable-is-a-pathname'

The gpg.program configuration variable, which names a pathname to
the (custom) GPG compatible program, can now be spelled with ~tilde
expansion.

* jb/gpg-program-variable-is-a-pathname:
  gpg-interface: expand gpg.program as a path
maint
Junio C Hamano 2025-07-21 09:14:28 -07:00
commit 3a112b53a4
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
gpg.program::
Use this custom program instead of "`gpg`" found on `$PATH` when
Pathname of the program to use instead of "`gpg`" when
making or verifying a PGP signature. The program must support the
same command-line interface as GPG, namely, to verify a detached
signature, "`gpg --verify $signature - <$file`" is run, and the

View File

@ -783,7 +783,7 @@ static int git_gpg_config(const char *var, const char *value,

if (fmtname) {
fmt = get_format_by_name(fmtname);
return git_config_string((char **) &fmt->program, var, value);
return git_config_pathname((char **) &fmt->program, var, value);
}

return 0;