X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5541-http-push.sh;h=17e1bdc5a81ce4802f5074ddb9c1996c68fc97be;hb=cb2af93ac183c1a6d5635bb2be047c1ade362099;hp=795dc2bcdf98e582dd2f05d901b791ab4225ce3b;hpb=b807c524df69fb44d7fe2a68a899985a7f7e6838;p=git.git diff --git a/t/t5541-http-push.sh b/t/t5541-http-push.sh index 795dc2bcd..17e1bdc5a 100755 --- a/t/t5541-http-push.sh +++ b/t/t5541-http-push.sh @@ -34,8 +34,34 @@ test_expect_success 'setup remote repository' ' mv test_repo.git "$HTTPD_DOCUMENT_ROOT_PATH" ' -test_expect_success 'clone remote repository' ' +cat >exp <act <"$HTTPD_ROOT_PATH"/access.log && + + # Clear the log, so that it does not affect the "used receive-pack + # service" test which reads the log too. + # + # We do this before the actual comparison to ensure the log is cleared. + echo > "$HTTPD_ROOT_PATH"/access.log && + + test_cmp exp act +' + +test_expect_success 'clone remote repository' ' + rm -rf test_repo_clone && git clone $HTTPD_URL/smart/test_repo.git test_repo_clone ' @@ -68,6 +94,7 @@ test_expect_success 'create and delete remote branch' ' ' cat >exp <