summaryrefslogtreecommitdiff
path: root/t/t5406-remote-rejects.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t5406-remote-rejects.sh')
-rwxr-xr-xt/t5406-remote-rejects.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t5406-remote-rejects.sh b/t/t5406-remote-rejects.sh
index 59e80a5..ff06f99 100755
--- a/t/t5406-remote-rejects.sh
+++ b/t/t5406-remote-rejects.sh
@@ -6,8 +6,9 @@ test_description='remote push rejects are reported by client'
test_expect_success 'setup' '
mkdir .git/hooks &&
- (echo "#!/bin/sh" ; echo "exit 1") >.git/hooks/update &&
- chmod +x .git/hooks/update &&
+ write_script .git/hooks/update <<-\EOF &&
+ exit 1
+ EOF
echo 1 >file &&
git add file &&
git commit -m 1 &&