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 <rsbecker@nexbridge.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Randall S. Becker committed
Feb 8, 2019 at 06:32 UTC
a250d418c0309a8d7a62e352348822b075525bf4
1 file changed
+1
-1
t/t5403-post-checkout-hook.sh
+1
-1
@@ -67,7 +67,7 @@ test_expect_success 'post-checkout is triggered on rebase with fast-forward' '
67
test_expect_success 'post-checkout hook is triggered by clone' '
68
mkdir -p templates/hooks &&
69
write_script templates/hooks/post-checkout <<-\EOF &&
70
- echo "$@" >$GIT_DIR/post-checkout.args
70
+ echo "$@" >"$GIT_DIR/post-checkout.args"
71
EOF
72
git clone --template=templates . clone3 &&
73
test -f clone3/.git/post-checkout.args