Skip to content

Commit 6ec90b5

Browse files
peffgitster
authored andcommitted
t5541: stop marking "used receive-pack service" test as v0 only
We have a test which checks to see if a request to git-receive-pack was made. Originally, it was checking the entire set of requests made in the script so far, including clones, and thus it would break when run with the v2 protocol (since that implies an extra request for fetches). Since the previous commit, though, we are only checking the requests made by a single push. And since there is no v2 push protocol, the test now passes no matter what's in GIT_TEST_PROTOCOL_VERSION. We can just run it all the time. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 77fb36a commit 6ec90b5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

t/t5541-http-push-smart.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,7 @@ test_expect_success 'used receive-pack service' '
8686
POST /smart/test_repo.git/git-receive-pack HTTP/1.1 200
8787
EOF
8888
89-
# NEEDSWORK: If the overspecification of the expected result is reduced, we
90-
# might be able to run this test in all protocol versions.
91-
if test "$GIT_TEST_PROTOCOL_VERSION" = 0
92-
then
93-
check_access_log exp
94-
fi
89+
check_access_log exp
9590
'
9691

9792
test_expect_success 'push to remote repository (standard) with sending Accept-Language' '

0 commit comments

Comments
 (0)