git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] gpg.program: '~' not expanded to home directory
@ 2025-07-11 15:04 Ross MacArthur
  2025-07-11 23:23 ` [PATCH] gpg-interface: expand gpg.program as a path Jonas Brandstötter
  2025-07-12  0:05 ` [BUG] gpg.program: '~' not expanded to home directory Junio C Hamano
  0 siblings, 2 replies; 15+ messages in thread
From: Ross MacArthur @ 2025-07-11 15:04 UTC (permalink / raw)
  To: git

`gpg.program` treats a leading ‘~’ literally, unlike other path
options such as `core.excludesfile`.

Error:

    fatal: cannot exec '~/.local/bin/mygpg': No such file or directory

Reproducer:

    ln -s "$(command -v gpg)" ~/.local/bin/mygpg
    git config gpg.program '~/.local/bin/mygpg'
    git commit -S -m "test"   # fails as above

Expected: Git should expand ‘~’ to $HOME.
Work-around: have to use an absolute path

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-07-29 15:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-11 15:04 [BUG] gpg.program: '~' not expanded to home directory Ross MacArthur
2025-07-11 23:23 ` [PATCH] gpg-interface: expand gpg.program as a path Jonas Brandstötter
2025-07-14 17:10   ` Junio C Hamano
2025-07-22 19:09   ` [PATCH v2 0/2] " Jonas Brandstötter
2025-07-22 20:28     ` Junio C Hamano
2025-07-22 19:09   ` [PATCH v2 1/2] " Jonas Brandstötter
2025-07-22 19:09   ` [PATCH v2 2/2] t7510: add test cases for non-absolute gpg program Jonas Brandstötter
2025-07-25  4:30     ` Jeff King
2025-07-25  5:13       ` Jeff King
2025-07-29  0:05       ` Junio C Hamano
2025-07-29  7:12         ` Jeff King
2025-07-29 15:06           ` Junio C Hamano
2025-07-12  0:05 ` [BUG] gpg.program: '~' not expanded to home directory Junio C Hamano
2025-07-12  9:38   ` Andreas Schwab
2025-07-12 14:08     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).