Skip to content

Commit d379d46

Browse files
committed
Merge branch 'os/rebase-runs-post-checkout-hook'
Test fix. * os/rebase-runs-post-checkout-hook: t5403: correct bash ambiguous redirect error in subtest 8 by quoting $GIT_DIR
2 parents e3fd181 + a250d41 commit d379d46

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)