File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -539,15 +539,14 @@ test_expect_success $PREREQ "--validate respects relative core.hooksPath path" '
539
539
test_path_is_file my-hooks.ran &&
540
540
cat >expect <<-EOF &&
541
541
fatal: longline.patch: rejected by sendemail-validate hook
542
- fatal: command ' " '" ' $(pwd) /my-hooks/sendemail-validate' " '" ' died with exit code 1
542
+ fatal: command ' " '" ' $PWD /my-hooks/sendemail-validate' " '" ' died with exit code 1
543
543
warning: no patches were sent
544
544
EOF
545
545
test_cmp expect actual
546
546
'
547
547
548
548
test_expect_success $PREREQ " --validate respects absolute core.hooksPath path" '
549
- hooks_path="$(pwd)/my-hooks" &&
550
- test_config core.hooksPath "$hooks_path" &&
549
+ test_config core.hooksPath "$(pwd)/my-hooks" &&
551
550
test_when_finished "rm my-hooks.ran" &&
552
551
test_must_fail git send-email \
553
552
--from="Example <[email protected] >" \
@@ -558,7 +557,7 @@ test_expect_success $PREREQ "--validate respects absolute core.hooksPath path" '
558
557
test_path_is_file my-hooks.ran &&
559
558
cat >expect <<-EOF &&
560
559
fatal: longline.patch: rejected by sendemail-validate hook
561
- fatal: command ' " '" ' $hooks_path /sendemail-validate' " '" ' died with exit code 1
560
+ fatal: command ' " '" ' $PWD/my-hooks /sendemail-validate' " '" ' died with exit code 1
562
561
warning: no patches were sent
563
562
EOF
564
563
test_cmp expect actual
You can’t perform that action at this time.
0 commit comments