Initialized empty Git repository in /home/itodoroski/git/t/trash directory.t5551-http-fetch/.git/ expecting success: echo content >file && git add file && git commit -m one [master (root-commit) ba36540] one Author: A U Thor 1 file changed, 1 insertion(+) create mode 100644 file ok 1 - setup repository expecting success: mkdir "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" && (cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" && git --bare init ) && git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" && git push public master:master Initialized empty Git repository in /home/itodoroski/git/t/trash directory.t5551-http-fetch/httpd/www/repo.git/ To /home/itodoroski/git/t/trash directory.t5551-http-fetch/httpd/www/repo.git * [new branch] master -> master ok 2 - create http-accessible bare repository expecting success: GIT_CURL_VERBOSE=1 git clone --quiet $HTTPD_URL/smart/repo.git clone 2>err && test_cmp file clone/file && tr '\015' Q <]/{ s/^/> / } /^> User-Agent: /d /^> Host: /d /^> POST /,$ { /^> Accept: [*]\\/[*]/d } s/^> Content-Length: .*/> Content-Length: xxx/ /^> 00..want /d /^> 00.*done/d /^< Server: /d /^< Expires: /d /^< Date: /d /^< Content-Length: /d /^< Transfer-Encoding: /d " >act && test_cmp exp act ok 3 - clone http repository expecting success: echo content >>file && git commit -a -m two && git push public (cd clone && git pull) && test_cmp file clone/file [master ace4881] two Author: A U Thor 1 file changed, 1 insertion(+) To /home/itodoroski/git/t/trash directory.t5551-http-fetch/httpd/www/repo.git ba36540..ace4881 master -> master From http://127.0.0.1:5551/smart/repo ba36540..ace4881 master -> origin/master Updating ba36540..ace4881 Fast-forward file | 1 + 1 file changed, 1 insertion(+) ok 4 - fetch changes via http expecting success: sed -e " s/^.* \"// s/\"// s/ [1-9][0-9]*\$// s/^GET /GET / " >act <"$HTTPD_ROOT_PATH"/access.log && test_cmp exp act ok 5 - used upload-pack service expecting success: git clone $HTTPD_URL/smart-redir-perm/repo.git --quiet repo-p error: RPC failed; result=22, HTTP code = 405 fatal: The remote end hung up unexpectedly not ok - 6 follow redirects (301) # # git clone $HTTPD_URL/smart-redir-perm/repo.git --quiet repo-p #