diff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh
index 21dbb557b7cfad412ba1796519a7a63a403c35bb..da9588645cd9d0054440e5ed3ba14f630c44f506 100755 (executable)
--- a/t/t5540-http-push.sh
+++ b/t/t5540-http-push.sh
exit
fi
-. ../lib-httpd.sh
+. "$TEST_DIRECTORY"/lib-httpd.sh
if ! start_httpd >&3 2>&4
then
git clone --bare test_repo test_repo.git &&
cd test_repo.git &&
git --bare update-server-info &&
- chmod +x hooks/post-update &&
+ mv hooks/post-update.sample hooks/post-update &&
cd - &&
mv test_repo.git "$HTTPD_DOCUMENT_ROOT_PATH"
'
git push origin :dev &&
git branch -d -r origin/dev &&
git fetch &&
- ! git show-ref --verify refs/remotes/origin/dev
+ test_must_fail git show-ref --verify refs/remotes/origin/dev
'
stop_httpd