Skip to content

Commit 9494532

Browse files
avargitster
authored andcommitted
http tests: don't rely on "hook/post-update.sample"
Change code added in a876793 (test: rename http fetch and push test files, 2014-02-06) to stop relying on the "exec git update-server-info" in "templates/hooks--post-update.sample", let's instead inline the expected hook in the test itself. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 62e2486 commit 9494532

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/t5540-http-push-webdav.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ test_expect_success 'setup remote repository' '
4242
git clone --bare test_repo test_repo.git &&
4343
cd test_repo.git &&
4444
git --bare update-server-info &&
45-
mv hooks/post-update.sample hooks/post-update &&
45+
test_hook --setup post-update <<-\EOF &&
46+
exec git update-server-info
47+
EOF
4648
ORIG_HEAD=$(git rev-parse --verify HEAD) &&
4749
cd - &&
4850
mv test_repo.git "$HTTPD_DOCUMENT_ROOT_PATH"

0 commit comments

Comments
 (0)