From: Andreas Ericsson Date: Fri, 21 Nov 2008 09:54:02 GMT Subject: Re: Cannot git pull using http from my git.mycompany.com Message-ID: <4926853A.6080009@op5.se> In-Reply-To: <562019.27220.qm@web37908.mail.mud.yahoo.com> Gary Yang wrote: > git pull http://git.mycompany.com/pub/git/u-boot.git HEAD > fatal: http://git.mycompany.com/pub/git/u-boot.git/info/refs not found: did you run git update-server-info on the server? > > Below are related gitweb configs. What did I do wrong? > > > httpd.confg > > > ServerName svdcgit01 > DocumentRoot /pub/git > > Allow from all > AllowOverride all > Order allow,deny > Options ExecCGI > > SetHandler cgi-script > > > DirectoryIndex /cgi-bin/gitweb.cgi > SetEnv GITWEB_CONFIG /etc/gitweb.conf > # RewriteEngine on > # RewriteRule ^/(.*\.git/(?!/?(HEAD|info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI} [L,PT] > > > cat /etc/gitweb.conf You seem slightly confused. gitweb is not used for cloning over http. The following documents would almost certainly be beneficial for you to read. Please don't ask any questions that are already answered in those documents. If, by following the steps outlined in those docs, you still cannot get things to work, please let us know what you fail to understand so the texts can be amended. http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#setting-up-a-public-repository http://dtcsupport.gplhost.com/Git/Public-Repo-Howto -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231