Hello,

I been trying to switch to GIT from SVN, for couple days allready, but
cannot overcome this annoying issue with push. I have been googling
and trying some suggested ways but still no avail, and I am pretty
desparate as I have been taking too much time with this issue
allready, so any suggestions, comments would be very very wellcome.
I succeed with ssh and git protocol, but in my case only option I can
make it work is Smart HTTP.

Git repos are located under /var/git/*.git as bare repositories

<----------------------Apache vhosts file------------------------->
<VirtualHost *:8088>

DocumentRoot /var/git

SetEnv GIT_PROJECT_ROOT /var/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend

<Location />
AuthType Basic
.........
</Location>

</VirtualHost>
<----------------------Apache vhosts file end-------------------------
>

<---------------------Git push output---------------------------------
>
# GIT_CURL_VERBOSE=1 GIT_TRACE=2 git push

trace: built-in: git 'push'
trace: run_command: 'git-remote-http' 'origin' 'http://test@localhost:
8088/foo.git'
Password:
* Couldn't find host localhost in the .netrc file; using defaults
* About to connect() to localhost port 8088 (#0)
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 8088 (#0)
> GET /foo.git/info/refs?service=git-receive-pack HTTP/1.1
User-Agent: git/1.7.0.4
Host: localhost:8088
Accept: */*
Pragma: no-cache

< HTTP/1.1 401 Authorization Required
< Date: Thu, 11 Aug 2011 14:40:49 GMT
< Server: Apache/2.2.14 (Ubuntu)
< WWW-Authenticate: Basic realm="Private Git Access"
< Vary: Accept-Encoding
< Content-Length: 478
< Content-Type: text/html; charset=iso-8859-1
<
* Ignoring the response-body
* Expire cleared
* Connection #0 to host localhost left intact
* Issue another request to this URL: 'http://test@localhost:8088/
foo.git/info/refs?service=git-receive-pack'
* Couldn't find host localhost in the .netrc file; using defaults
* Re-using existing connection! (#0) with host localhost
* Connected to localhost (127.0.0.1) port 8088 (#0)
* Server auth using Basic with user 'test'
> GET /foo.git/info/refs?service=git-receive-pack HTTP/1.1
Authorization: Basic dGVzdDp0ZXN0
User-Agent: git/1.7.0.4
Host: localhost:8088
Accept: */*
Pragma: no-cache

< HTTP/1.1 200 OK
< Date: Thu, 11 Aug 2011 14:40:49 GMT
< Server: Apache/2.2.14 (Ubuntu)
< Last-Modified: Thu, 21 Jul 2011 13:36:45 GMT
< ETag: "840c61-4f9-4a89470a11f16"
< Accept-Ranges: bytes
< Content-Length: 1273
< Content-Type: text/plain
<
* Connection #0 to host localhost left intact
* Couldn't find host localhost in the .netrc file; using defaults
* Re-using existing connection! (#0) with host localhost
* Connected to localhost (127.0.0.1) port 8088 (#0)
* Server auth using Basic with user 'test'
> GET /foo.git/HEAD HTTP/1.1
Authorization: Basic dGVzdDp0ZXN0
User-Agent: git/1.7.0.4
Host: localhost:8088
Accept: */*
Pragma: no-cache

< HTTP/1.1 200 OK
< Date: Thu, 11 Aug 2011 14:40:49 GMT
< Server: Apache/2.2.14 (Ubuntu)
< Last-Modified: Thu, 21 Jul 2011 12:31:28 GMT
< ETag: "840014-17-4a893873194b4"
< Accept-Ranges: bytes
< Content-Length: 23
< Content-Type: text/plain
<
* Connection #0 to host localhost left intact
trace: run_command: 'http-push' '--helper-status' 'http://
test@localhost:8088/foo.git' 'refs/heads/master:refs/heads/master'
trace: exec: 'git' 'http-push' '--helper-status' 'http://
test@localhost:8088/foo.git' 'refs/heads/master:refs/heads/master'
trace: exec: 'git-http-push' '--helper-status' 'http://test@localhost:
8088/foo.git' 'refs/heads/master:refs/heads/master'
trace: run_command: 'git-http-push' '--helper-status' 'http://
test@localhost:8088/foo.git' 'refs/heads/master:refs/heads/master'
Password:
* Couldn't find host localhost in the .netrc file; using defaults
* About to connect() to localhost port 8088 (#0)
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 8088 (#0)
> PROPFIND /foo.git/ HTTP/1.1
User-Agent: git/1.7.0.4
Host: localhost:8088
Accept: */*
Depth: 0
Content-Type: text/xml
Content-Length: 165
Expect: 100-continue

< HTTP/1.1 401 Authorization Required
< Date: Thu, 11 Aug 2011 14:40:51 GMT
< Server: Apache/2.2.14 (Ubuntu)
< WWW-Authenticate: Basic realm="Private Git Access"
< Vary: Accept-Encoding
< Content-Length: 478
< Content-Type: text/html; charset=iso-8859-1
<
* Expire cleared
* Closing connection #0
* Issue another request to this URL: 'http://test@localhost:8088/
foo.git/'
* Couldn't find host localhost in the .netrc file; using defaults
* About to connect() to localhost port 8088 (#0)
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 8088 (#0)
* Server auth using Basic with user 'test'
> PROPFIND /foo.git/ HTTP/1.1
Authorization: Basic dGVzdDp0ZXN0
User-Agent: git/1.7.0.4
Host: localhost:8088
Accept: */*
Depth: 0
Content-Type: text/xml
Content-Length: 165
Expect: 100-continue

< HTTP/1.1 100 Continue
* The requested URL returned error: 405
* Closing connection #0
error: Cannot access URL http://test@localhost:8088/foo.git/, return
code 22
fatal: git-http-push failed

<---------------------Git push output
end--------------------------------->

<---------------------Apache
logs--------------------------------------------->
127.0.0.1 - - [11/Aug/2011:16:51:07 +0200] "GET /foo.git/info/refs?
service=git-receive-pack HTTP/1.1" 401 727
127.0.0.1 - test [11/Aug/2011:16:51:07 +0200] "GET /foo.git/info/refs?
service=git-receive-pack HTTP/1.1" 200 1511
127.0.0.1 - test [11/Aug/2011:16:51:07 +0200] "GET /foo.git/HEAD HTTP/
1.1" 200 258
127.0.0.1 - - [11/Aug/2011:16:51:09 +0200] "PROPFIND /foo.git/ HTTP/
1.1" 401 727
127.0.0.1 - test [11/Aug/2011:16:51:09 +0200] "PROPFIND /foo.git/ HTTP/
1.1" 405 559
<---------------------Apache logs
end--------------------------------------------->

I get asked for password twice, which is also strange.
By googling around I found some suggestions that PROPFIND is WebDAV
command, and this suggests that Git is falling back to old "Dumb"
protocol.

Please, any suggestions,

Thank You

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to