Skip to content

Commit a250d41

Browse files
rsbeckercagitster
authored andcommitted
t5403: correct bash ambiguous redirect error in subtest 8 by quoting $GIT_DIR
The embedded blanks in the full path of the test git repository cased bash to generate an ambugious redirect error. Signed-off-by: Randall S. Becker <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8581df6 commit a250d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5403-post-checkout-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ test_expect_success 'post-checkout is triggered on rebase with fast-forward' '
6767
test_expect_success 'post-checkout hook is triggered by clone' '
6868
mkdir -p templates/hooks &&
6969
write_script templates/hooks/post-checkout <<-\EOF &&
70-
echo "$@" >$GIT_DIR/post-checkout.args
70+
echo "$@" >"$GIT_DIR/post-checkout.args"
7171
EOF
7272
git clone --template=templates . clone3 &&
7373
test -f clone3/.git/post-checkout.args

0 commit comments

Comments
 (0)