We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1924c9 + 26ef887 commit eb8bc44Copy full SHA for eb8bc44
t/t7510-signed-commit.sh
@@ -449,7 +449,17 @@ test_expect_success 'custom `gpg.program`' '
449
450
test_must_fail env LET_GPG_PROGRAM_FAIL=1 \
451
git commit -S --allow-empty -m must-fail 2>err &&
452
- grep zOMG err
+ grep zOMG err &&
453
+
454
+ # `gpg.program` starts with `~`, the path should be interpreted to be relative to `$HOME`
455
+ test_config gpg.program "~/fake-gpg" &&
456
+ env HOME="$(pwd)" \
457
+ git commit -S --allow-empty -m signed-commit &&
458
459
+ # `gpg.program` does not specify an absolute path, it should find a program in `$PATH`
460
+ test_config gpg.program "fake-gpg" &&
461
+ env PATH="$(pwd):$PATH" \
462
+ git commit -S --allow-empty -m signed-commit
463
'
464
465
test_done
0 commit comments