git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: push fails with return code 22

From
AWAndrew Watson <andwatsresearch@gmail.com>
Date
Apr 28, 2017, 15:48 UTC
Message-ID
<CAH6sfJVFKJAEm-RpAGXoTaE6eDCnFiuQaw2K1Pk2ZBu36dZvfQ@mail.gmail.com>
In-Reply-To
<20170428153446.z5pp55kdniubt5ia@sigill.intra.peff.net>
You are the best Peff.
It was indeed the hierarchy. So just had to change document root.
Thanks a bunch.
On Fri, Apr 28, 2017 at 11:34 AM, Jeff King <peff@peff.net> wrote:
Show 40 quoted lines
> On Fri, Apr 28, 2017 at 11:28:14AM -0400, Andrew Watson wrote:
>
>> $ GIT_CURL_VERBOSE=1 git clone http://git.site.domain.com/foo/gitrepo.git
>> Cloning into 'gitrepo'...
>> * Couldn't find host git.site.domain.com in the _netrc file; using defaults
>> * timeout on name lookup is not supported
>> *   Trying 192.168.16.138...
>> * TCP_NODELAY set
>> * Connected to git.site.domain.com (192.168.16.138) port 80 (#0)
>> > GET /foo/gitrepo.git/info/refs?service=git-upload-pack HTTP/1.1
>> Host: git.site.domain.com
>> User-Agent: git/2.12.2.windows.2
>> Accept: */*
>> Accept-Encoding: gzip
>> Pragma: no-cache
>>
>> < HTTP/1.1 200 OK
>> < Date: Fri, 28 Apr 2017 15:25:02 GMT
>> < Server: Apache/2.4.6 (CentOS) PHP/5.4.16
>> < Last-Modified: Tue, 25 Apr 2017 18:11:35 GMT
>> < ETag: "0-54e01a77ac500"
>> < Accept-Ranges: bytes
>> < Content-Length: 0
>> < Content-Type: text/plain; charset=UTF-8
>
> OK, so this is not doing smart-http either (the content-type should be
> application/x-git-upload-pack-advertisement when the CGI generates it).
>
> Looking at your config again, I see:
>
>   ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
>
> but your example output shows:
>
>   GET /gitrepo.git/info/refs?service=git-receive-pack
>
> I.e., not in the /git/ hierarchy. So that might explain why the CGI is
> not kicking in.
>
> -Peff
Previous: Jeff King
Message 7 of 7 in “push fails with return code 22”
  1. Andrew WatsonApr 27, 2017
  2. Jeff KingApr 27, 2017
  3. Andrew WatsonApr 28, 2017
  4. Jeff KingApr 28, 2017
  5. Andrew WatsonApr 28, 2017
  6. Jeff KingApr 28, 2017
  7. Andrew WatsonApr 28, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.