diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-02-15 01:43:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-15 01:43:57 -0800 |
commit | c42b04bbb0cdf7618d3bdb57ed02569a5f128fe9 (patch) | |
tree | 14e997553a5ce307611abc6cca62f353a5b5e601 /t | |
parent | 43e35f6bc14c6e00148a01700e3df191aa99c9f7 (diff) | |
parent | dfab7c144eb2f02fc1481173422ecc416a060155 (diff) | |
download | git-c42b04bbb0cdf7618d3bdb57ed02569a5f128fe9.tar.gz |
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-x | t/t5540-http-push.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh index c236b5e83b..11b343274f 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 |