Signed-off-by: Martin Ågren <martin.ag...@gmail.com>
---
 t/t7503-pre-commit-and-pre-merge-commit-hooks.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/t7503-pre-commit-and-pre-merge-commit-hooks.sh 
b/t/t7503-pre-commit-and-pre-merge-commit-hooks.sh
index 86a375ab3e..5cc6c98375 100755
--- a/t/t7503-pre-commit-and-pre-merge-commit-hooks.sh
+++ b/t/t7503-pre-commit-and-pre-merge-commit-hooks.sh
@@ -162,7 +162,7 @@ test_expect_success '--no-verify with failing hook (merge)' 
'
 '
 
 test_expect_success POSIXPERM 'with non-executable hook' '
-       test_when_finished "rm -f \"$PRECOMMIT\" expected_hooks actual_hooks; 
chmod +x \"$HOOKDIR/fail.sample\"" &&
+       test_when_finished "rm -f \"$PRECOMMIT\" expected_hooks actual_hooks && 
chmod +x \"$HOOKDIR/fail.sample\"" &&
        ln -s "fail.sample" "$PRECOMMIT" &&
        chmod -x "$HOOKDIR/fail.sample" &&
        touch expected_hooks actual_hooks &&
@@ -173,7 +173,7 @@ test_expect_success POSIXPERM 'with non-executable hook' '
 '
 
 test_expect_success POSIXPERM '--no-verify with non-executable hook' '
-       test_when_finished "rm -f \"$PRECOMMIT\" expected_hooks actual_hooks; 
chmod +x \"$HOOKDIR/fail.sample\"" &&
+       test_when_finished "rm -f \"$PRECOMMIT\" expected_hooks actual_hooks && 
chmod +x \"$HOOKDIR/fail.sample\"" &&
        ln -s "fail.sample" "$PRECOMMIT" &&
        chmod -x "$HOOKDIR/fail.sample" &&
        touch expected_hooks actual_hooks &&
-- 
2.23.0.rc0.30.g51cf315870

Reply via email to