$ git --version && uname -a && curl-config --version git version 2.0.1 Linux localhost 3.15.3-1-ARCH #1 SMP PREEMPT Tue Jul 1 07:32:45 CEST 2014 x86_64 GNU/Linux libcurl 7.37.0 $ mkdir foo; cd foo $ git --bare init Initialized empty Git repository in /home/user/foo/ $ git update-server-info $ cd .. $ sudo mount -t davfs https://dav.box.com/dav ./box $ cp -r foo box $ sudo umount box $ rm -r foo $ cat > .netrc << EOF > machine dav.box.com > login [[ redacted ]] > password [[ redacted ]] > EOF $ chmod 600 .netrc $ GIT_SMART_HTTP=0 git clone https://dav.box.com/dav/foo Cloning into 'foo'... warning: You appear to have cloned an empty repository. Checking connectivity... done. $ cd foo/.git/hooks $ mv post-update.sample post-update $ cd ../.. $ touch bar $ git add . $ git commit -a -m "foo bar" [master (root-commit) 2031b47] foo bar 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 bar $ GIT_SMART_HTTP=0 GIT_CURL_VERBOSE=1 GIT_TRACE=1 git push origin master trace: built-in: git 'push' 'origin' 'master' trace: run_command: 'git-remote-https' 'origin' 'https://dav.box.com/dav/foo' * Hostname was NOT found in DNS cache * Trying 74.112.185.70... * Connected to dav.box.com (74.112.185.70) port 443 (#0) * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 * Server certificate: * subject: serialNumber=jde9iuVneOEaNkFotOvLFaWx0vb5-Qpv; C=US; ST=California; L=Los Altos; O=Box, Inc.; CN=*.box.com * start date: 2014-04-07 05:14:35 GMT * expire date: 2017-10-31 20:06:48 GMT * subjectAltName: dav.box.com matched * issuer: C=US; O=GeoTrust, Inc.; CN=GeoTrust SSL CA * SSL certificate verify ok. > GET /dav/foo/info/refs HTTP/1.1 User-Agent: git/2.0.1 Host: dav.box.com Accept: */* Accept-Encoding: gzip Pragma: no-cache < HTTP/1.1 401 Unauthorized * Server nginx is not blacklisted < Server: nginx < Date: Fri, 04 Jul 2014 23:34:18 GMT < Content-Type: application/xml; charset=utf-8 < Content-Length: 242 < Connection: keep-alive < Vary: Host < WWW-Authenticate: Basic realm="dav.box.com" < * Ignoring the response-body * Connection #0 to host dav.box.com left intact * Issue another request to this URL: 'https://dav.box.com/dav/foo/info/refs' * Found bundle for host dav.box.com: 0x123ff40 * Re-using existing connection! (#0) with host dav.box.com * Connected to dav.box.com (74.112.185.70) port 443 (#0) * Server auth using Basic with user '[[ redacted ]]' > GET /dav/foo/info/refs HTTP/1.1 Authorization: Basic [[ redacted ]] User-Agent: git/2.0.1 Host: dav.box.com Accept: */* Accept-Encoding: gzip Pragma: no-cache < HTTP/1.1 200 OK * Server nginx is not blacklisted < Server: nginx < Date: Fri, 04 Jul 2014 23:34:19 GMT < Content-Type: application/octet-stream < Content-Length: 0 < Connection: keep-alive < Vary: Host < Cache-control: private < Accept-Ranges: bytes < Content-Disposition: attachment;filename="refs";filename*=UTF-8''refs < X-Content-Type-Options: nosniff < Last-Modified: Fri, 04 Jul 2014 23:23:51 GMT < ETag: "da39a3ee5e6b4b0d3255bfef95601890afd80709" < Accept-Ranges: bytes < * Connection #0 to host dav.box.com left intact * Found bundle for host dav.box.com: 0x123ff40 * Re-using existing connection! (#0) with host dav.box.com * Connected to dav.box.com (74.112.185.70) port 443 (#0) * Server auth using Basic with user '[[ redacted ]]' > GET /dav/foo/HEAD HTTP/1.1 Authorization: Basic [[ redacted ]] User-Agent: git/2.0.1 Host: dav.box.com Accept: */* Accept-Encoding: gzip Pragma: no-cache < HTTP/1.1 200 OK * Server nginx is not blacklisted < Server: nginx < Date: Fri, 04 Jul 2014 23:34:20 GMT < Content-Type: application/octet-stream < Content-Length: 23 < Connection: keep-alive < Vary: Host < Cache-control: private < Accept-Ranges: bytes < Content-Disposition: attachment;filename="HEAD";filename*=UTF-8''HEAD < X-Content-Type-Options: nosniff < Last-Modified: Fri, 04 Jul 2014 23:24:12 GMT < ETag: "acbaef275e46a7f14c1ef456fff2c8bbe8c84724" < Accept-Ranges: bytes < * Connection #0 to host dav.box.com left intact trace: run_command: 'http-push' '--helper-status' 'https://dav.box.com/dav/foo/' 'refs/heads/master:refs/heads/master' trace: exec: 'git' 'http-push' '--helper-status' 'https://dav.box.com/dav/foo/' 'refs/heads/master:refs/heads/master' trace: exec: 'git-http-push' '--helper-status' 'https://dav.box.com/dav/foo/' 'refs/heads/master:refs/heads/master' trace: run_command: 'git-http-push' '--helper-status' 'https://dav.box.com/dav/foo/' 'refs/heads/master:refs/heads/master' * Hostname was NOT found in DNS cache * Trying 74.112.184.70... * Connected to dav.box.com (74.112.184.70) port 443 (#0) * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt CApath: none * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 * Server certificate: * subject: serialNumber=jde9iuVneOEaNkFotOvLFaWx0vb5-Qpv; C=US; ST=California; L=Los Altos; O=Box, Inc.; CN=*.box.com * start date: 2014-04-07 05:14:35 GMT * expire date: 2017-10-31 20:06:48 GMT * subjectAltName: dav.box.com matched * issuer: C=US; O=GeoTrust, Inc.; CN=GeoTrust SSL CA * SSL certificate verify ok. > PROPFIND /dav/foo/ HTTP/1.1 User-Agent: git/2.0.1 Host: dav.box.com Accept: */* Depth: 0 Content-Type: text/xml Content-Length: 158 Expect: 100-continue < HTTP/1.1 100 Continue * We are completely uploaded and fine < HTTP/1.1 401 Unauthorized * Server nginx is not blacklisted < Server: nginx < Date: Fri, 04 Jul 2014 23:34:21 GMT < Content-Type: application/xml; charset=utf-8 < Content-Length: 242 < Connection: keep-alive < Vary: Host < WWW-Authenticate: Basic realm="dav.box.com" * the ioctl callback returned 0 < * Ignoring the response-body * Connection #0 to host dav.box.com left intact * Issue another request to this URL: 'https://dav.box.com/dav/foo/' * Found bundle for host dav.box.com: 0x20469c0 * Re-using existing connection! (#0) with host dav.box.com * Connected to dav.box.com (74.112.184.70) port 443 (#0) * Server auth using Basic with user '[[ redacted ]]' > PROPFIND /dav/foo/ HTTP/1.1 Authorization: Basic [[ redacted ]] User-Agent: git/2.0.1 Host: dav.box.com Accept: */* Depth: 0 Content-Type: text/xml Content-Length: 158 Expect: 100-continue < HTTP/1.1 100 Continue [[ This is where it hangs for about 60 seconds ]] * Empty reply from server * Connection #0 to host dav.box.com left intact error: Cannot access URL https://dav.box.com/dav/foo/, return code 52 fatal: git-http-push failed error: failed to push some refs to 'https://dav.box.com/dav/foo'