summaryrefslogtreecommitdiff
path: root/t/t5550-http-fetch.sh
diff options
context:
space:
mode:
authorGabriel Corona <gabriel.corona@enst-bretagne.fr>2010-11-14 01:51:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-11-17 21:07:43 (GMT)
commit3cf8fe1d26edd7c4cce6593d70212970f8b0bbc0 (patch)
tree7cc5c84ac5c809d595217dd9150474a642b34fe5 /t/t5550-http-fetch.sh
parentf772c34ce09a49eb553240eb672bf0cc2dbcb10a (diff)
downloadgit-3cf8fe1d26edd7c4cce6593d70212970f8b0bbc0.zip
git-3cf8fe1d26edd7c4cce6593d70212970f8b0bbc0.tar.gz
git-3cf8fe1d26edd7c4cce6593d70212970f8b0bbc0.tar.bz2
t5550: test HTTP authentication and userinfo decoding
Add a test for HTTP authentication and proper percent-decoding of the userinfo (username and password) part of the URL. Signed-off-by: Gabriel Corona <gabriel.corona@enst-bretagne.fr> Acked-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5550-http-fetch.sh')
-rwxr-xr-xt/t5550-http-fetch.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t5550-http-fetch.sh b/t/t5550-http-fetch.sh
index 2fb48d0..a0564de 100755
--- a/t/t5550-http-fetch.sh
+++ b/t/t5550-http-fetch.sh
@@ -34,6 +34,13 @@ test_expect_success 'clone http repository' '
test_cmp file clone/file
'
+test_expect_failure 'clone http repository with authentication' '
+ mkdir "$HTTPD_DOCUMENT_ROOT_PATH/auth/" &&
+ cp -Rf "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" "$HTTPD_DOCUMENT_ROOT_PATH/auth/repo.git" &&
+ git clone $AUTH_HTTPD_URL/auth/repo.git clone-auth &&
+ test_cmp file clone-auth/file
+'
+
test_expect_success 'fetch changes via http' '
echo content >>file &&
git commit -a -m two &&