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

Git with http and no Dav?

From
SSensei <senseiwa@gmail.com>
Date
Sep 9, 2010, 08:59 UTC
Message-ID
<4F28769D-A026-4DA0-9BD4-094EA61EAF92@gmail.com>
Hi all!
I am starting to make some public repositories available, although I am struggling with the HTTP backend! 
My setup is currently this: authorized users make use of ssh in order to clone/push, and this works like a charm. A public view (only view!) of repositories can be obtained by gitweb, and this also works flawlessly. 
On my debian server though, I don't know how to enable public cloning via http, since I don't really want to use WebDAV, as explained on the "setup-git-server-over-http.txt" howto. 
As suggested, I issued the "git update-server-info" command in the repository location, however, this has no effect on the repository:
# git update-server-info

# ls refs/ heads tags

My apache configuration regarding git is this:
(...)
	<Directory /var/www/site/git>
		Allow from all
		AllowOverride all
		Order allow,deny
		Options ExecCGI
		<Files gitweb.cgi>
			SetHandler cgi-script
		</Files>
		DirectoryIndex gitweb.cgi
	</Directory>
	SetEnv  GITWEB_CONFIG  /etc/gitweb.conf
	<Directory /home/git>
		Order allow,deny
		Allow from all
	</Directory>
(...)
Anyway, I keep having the very same error (I tried also with different paths with no luck and the same error):

$ git clone http://my.site/home/git/repo Cloning into repo... fatal: http://my.site/home/git/repo/info/refs not found: did you run git update-server-info on the server?

There's something terribly naive that I'm missing here, I know!
Can you give me a hint?
Thanks & Cheers!
Message 1 of 1 in “Git with http and no Dav?”
  1. SenseiSep 9, 2010

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.