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

Re: Why is my git-http-backend solution using WebDAV on push?

From
Junio C Hamano <gitster@pobox.com>
Date
May 25, 2016, 22:16 UTC
Message-ID
<xmqqiny1zstq.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CABwKKP-rKSGzdk6E78BMRCVdumtVnj7tysv90c7RL8=059PxoA@mail.gmail.com>
Luke Madhanga <lmadhanga@gmail.com> writes:
Show 5 quoted lines
>> A manual CLI call to git-http-backend doesn't include
>> 'application/x-git-receive-pack-advertisement'
>>
>> REQUEST_METHOD=GET GIT_PROJECT_ROOT=/path/to/core/
>> PATH_INFO=/repo.git/info/refs /usr/lib/git-core/git-http-backend

The request client makes to probe is (taking it from Peff's message that is quoting from your trace):

> > GET /p/git-backend/run/1/info/refs?service=git-receive-pack HTTP/1.1

Your manual CLI call seems not to have "?service=git-receive-pack" anywhere. Where did it go? QUERY_STRING, perhaps?

Here is what I am observing:
    $ GIT_HTTP_EXPORT_ALL=Yes \
    > REQUEST_METHOD=GET \
    > GIT_PROJECT_ROOT=$(pwd)/.git \
    > PATH_INFO='/info/refs' \
    > QUERY_STRING=service=git-receive-pack \
    > git -c http.receivepack=yes http-backend 2>&1 | sed -e '/^.$/q'
    Expires: Fri, 01 Jan 1980 00:00:00 GMT
    Pragma: no-cache
    Cache-Control: no-cache, max-age=0, must-revalidate
    Content-Type: application/x-git-receive-pack-advertisement
Show 11 quoted lines
>>
>> The above command outputs
>>
>> Expires: Fri, 01 Jan 1980 00:00:00 GMT
>> Pragma: no-cache
>> Cache-Control: no-cache, max-age=0, must-revalidate
>> Content-Length: 118
>> Content-Type: text/plain
>>
>> f4648182f5f8eee082c37a83a0072cfc4210e5c5 refs/heads/master
>> 8c4efcd77809bc9b94a59cf94653add8007c6b7d refs/heads/zztest
Previous: Luke Madhanga
Message 5 of 5 in “Why is my git-http-backend solution using WebDAV on push?”
  1. Luke MadhangaMay 25, 2016
  2. Jeff KingMay 25, 2016
  3. Luke MadhangaMay 25, 2016
  4. Luke MadhangaMay 25, 2016
  5. Junio C HamanoMay 25, 2016

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.