Hello community I have a problem with the "new" http-backend of git.
I have set up the git-http-backend to use the "smart" http version of git.
Authentification works fine, I can clone my repository over http and https 
as expected.
For testing purposes, GIT_SSL_NO_VERIFY and http.receivepack are both set 
to true.
But when I am trying to push, I get a 404 header back and a return code 22:
> PROPFIND /git/repo/test.git/ HTTP/1.1
User-Agent: git/1.9.5.msysgit.1
Accept: */*
Depth: 0
Content-Type: text/xml
Content-Length: 167
Expect: 100-continue
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
* The requested URL returned error: 404 Not Found
* Closing connection 0
error: Cannot access URL, return code 22
fatal: git-http-push failed
That of course had me confused, because PROPFIND is a Webdav call and I 
thought the http backend would only use "smart" http (webdav is not enabled 
on the server)
In an answer *here* 
it confirms that Webdav should actually not even be used. It also states 
that Webdav will be used as backup if the client receives a 403 header.
But my Access log as well as the trace do not show any sign of that.
Through my hook script I got a dump of the environement that is submitted 
to the script:
export GIT_PROJECT_ROOT='/theRealPathToTheGitRoot/gitroot/'
export PATH_INFO='/test.git/'
export REMOTE_USER='Test'
export REMOTE_ADDR=''
export CONTENT_TYPE='text/xml'
export QUERY_STRING='req=git/repo/test.git/'
export HTTP_ACCEPT='*/*'
The error log logging the error output of the git-http-backend contains 
Status: 404 Not Found
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate

Request not supported: '/theRealPathToTheGitRoot/gitroot/test.git/
Did I mess something up? I am sure that Webdav should not be required for 
the backend to work.
Environement information: 
Client Git 1.9.x under Windows and Linux
Any help would be much appreciated :)

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to