Skip to content

Commit 035cccf

Browse files
avarttaylorr
authored andcommitted
hook tests: fix redirection logic error in 96e7225
The tests added in 96e7225 (hook: add 'run' subcommand, 2021-12-22) were redirecting to "actual" both in the body of the hook itself and in the testing code below. The net result was that the "2>>actual" redirection later in the test wasn't doing anything. Let's have those redirection do what it looks like they're doing. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent 63bba4f commit 035cccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1800-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ test_expect_success 'git hook run -- out-of-repo runs excluded' '
9595
test_expect_success 'git -c core.hooksPath=<PATH> hook run' '
9696
mkdir my-hooks &&
9797
write_script my-hooks/test-hook <<-\EOF &&
98-
echo Hook ran $1 >>actual
98+
echo Hook ran $1
9999
EOF
100100
101101
cat >expect <<-\EOF &&

0 commit comments

Comments
 (0)