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

Re: Trying to understand the web dav details

From
Jeff King <peff@peff.net>
Date
Jan 6, 2013, 04:19 UTC
Message-ID
<20130106041942.GB4879@sigill.intra.peff.net>
In-Reply-To
<151C51E6FBD848739A43A2C17D78DD68@black>
On Sat, Jan 05, 2013 at 08:32:09PM -0500, Jason Pyeron wrote:
Show 6 quoted lines
> When doing a clone by https (reverse proxied to http) the first request is
> 
> GET /git/project/info/refs?service=git-upload-pack
> 
> How does the ?service=xxxx get translated in to the action performed on the web
> server?

If you are using the git-http-backend CGI, it will interpret the service tag and start smart-http. See "git help http-backend" for details on plugging it into Apache.

Cloning/fetching does not use DAV at all; it is only for non-smart pushing (and I would not recommend setting it up; the smart protocol spoken by git-http-backend does pushing much more efficiently, and is better maintained).

Show 5 quoted lines
> I ask because I have 2 projects, one works the other does not.
> 
> I am using httpd-2.0.52-49.ent.centos4 and git-1.7.9.6-1.
> 
> I am not even sure what to tell more about or where to look next.

If you haven't set up git-http-backend, then git is just going to fetch the remote repo's data directly over http. So the usual advice for accessing something via http would apply (check the server's access and error logs, try hitting it with a web browser, etc).

If you set GIT_CURL_VERBOSE=1 in your environment, git will spew a lot of debugging information about what http requests it is making. That might give you a clue (you haven't said anything about what does not work, so I can't be more specific).

-Peff
Previous: Jason PyeronNext: Pyeron, Jason J CTR (US)
Message 2 of 5 in “Trying to understand the web dav details”
  1. Jason PyeronJan 6, 2013
  2. Jeff KingJan 6, 2013
  3. Pyeron, Jason J CTR (US)Jan 6, 2013
  4. Jeff KingJan 6, 2013
  5. Jason PyeronJan 6, 2013

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.