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
Host: 10.5.1.2
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 https://10.5.1.2/git/repo/test.git/, 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* 
<http://serverfault.com/questions/180413/authentication-for-git-push-over-http> 
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 GIT_HTTP_EXPORT_ALL=1
export PATH_INFO='/test.git/'
export GIT_COMMITTER_NAME=''
export GIT_COMMITTER_EMAIL=''
export REMOTE_USER='Test'
export REMOTE_ADDR='10.5.2.73'
export CONTENT_TYPE='text/xml'
export QUERY_STRING='req=git/repo/test.git/'
export REQUEST_METHOD='PROPFIND'
export HTTP_ACCEPT='*/*'
export CONTENT_LENGTH=167
The error log logging the error output of the git-http-backend contains 
that:
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: 
Apache2.2
Client Git 1.9.x under Windows and Linux
Any help would be much appreciated :)
Matthias

-- 
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