aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-15 01:43:57 -0800
committerJunio C Hamano <gitster@pobox.com>2009-02-15 01:43:57 -0800
commitc42b04bbb0cdf7618d3bdb57ed02569a5f128fe9 (patch)
tree14e997553a5ce307611abc6cca62f353a5b5e601 /t
parent43e35f6bc14c6e00148a01700e3df191aa99c9f7 (diff)
parentdfab7c144eb2f02fc1481173422ecc416a060155 (diff)
downloadgit-c42b04bbb0cdf7618d3bdb57ed02569a5f128fe9.tar.gz
git-c42b04bbb0cdf7618d3bdb57ed02569a5f128fe9.tar.xz
Merge branch 'rc/http-push'
* rc/http-push: use a hash of the lock token as the suffix for PUT/MOVE
Diffstat (limited to 't')
-rwxr-xr-xt/t5540-http-push.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh
index c236b5e83..11b343274 100755
--- a/t/t5540-http-push.sh
+++ b/t/t5540-http-push.sh
@@ -94,6 +94,13 @@ test_expect_success 'MKCOL sends directory names with trailing slashes' '
'
+test_expect_success 'PUT and MOVE sends object to URLs with SHA-1 hash suffix' '
+
+ grep -P "\"(?:PUT|MOVE) .+objects/[\da-z]{2}/[\da-z]{38}_[\da-z\-]{40} HTTP/[0-9.]+\" 20\d" \
+ < "$HTTPD_ROOT_PATH"/access.log
+
+'
+
stop_httpd
test_done