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

SSL + mod_dav + Git

From
CHChris Hart <chris@christopherhart.ca>
Date
Jul 29, 2008, 11:53 UTC
Message-ID
<a7b96a640807290453l582c3f11w6a0f0c841063f07@mail.gmail.com>

Hi guys, I've been up all night on this one and after exhaustive Googling and checking the sleepy #git, decided to check with the mailing list! Here's the current problem:

Git is working perfectly over SSH. The server is Ubuntu, and doing cadaver https://serveraddress/.git successfully authenticates using the passwd file I provided to Apache. Basically I've done everything from Rutger's guide (http://www.kernel.org/pub/software/scm/git/docs/v1.4.4.4/howto/setup-git-server-over-http.txt) except for the ~/.netrc stuff.

However, once authenticated to the .git folder (cadaver through https), basic commands give strange errors or 404s. Ls throws "Listing collection `/.git/': failed: Could not read status line: Secure connection truncated" and cd /to/some/legitimate/directory throws "Could not access /.git/dir/ (not WebDAV-enabled?): 404 Not Found." Oddly tab-completion for cd suggests the contents of the directory (although I'm cadaver-ing from localhost). Same results remotely in a browser: authenticates successfully and gives 404s.

Trying git clone https://server/.git throws:
"warning: remote HEAD refers to nonexistent ref, unable to checkout"

...despite the working certificate and authorization. Any ideas? Thanks infinity and one to anybody with attention for this!

Chris
Note: Apache owns all the files here so I really hope it's not a
permissions thing.

------------------ Git version info -------------------- server> git version 1.5.4.3 remote-laptop> git version 1.5.6.4 ------------------------------------------------------------

Next: Sean Estabrooks
Message 1 of 3 in “SSL + mod_dav + Git”
  1. Chris HartJul 29, 2008
  2. Sean EstabrooksJul 29, 2008
  3. Matthieu MoyAug 11, 2008

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.