Re: cant get git to work over http
- From
Jon Loeliger <jdl@freescale.com>
- Date
- Feb 19, 2008, 20:05 UTC
- Message-ID
- <47BB3691.9040809@freescale.com>
- In-Reply-To
- <e26d18e40802191153w691ac5fcl3fa972ca6503b9fb@mail.gmail.com>
Anatoly Yakovenko wrote:
Show 14 quoted lines
> > $ git-clone ssh://aeyakovenko@localhost/var/www/localhost/htdocs/git/repo/ repo > Initialized empty Git repository in /home/aeyakovenko/projects/repo/repo/.git/ > aeyakovenko@localhost's password: > Receiving objects: 100% (3/3), done. > remote: Counting objects: 3, done. > remote: Total 3 (delta 0), reused 0 (delta 0) > > but for the life of me i cant do this: > > $ git-clone http://aeyakovenko@localhost/var/www/localhost/htdocs/git/repo/ repo > Initialized empty Git repository in /home/aeyakovenko/projects/repo/.git/ > Cannot get remote repository information. > Perhaps git-update-server-info needs to be run there?
Ponder the Doc Root for an HTTP request. Remember that your httpd will likely be striping or rewriting that base directory path and so it won't be needed on your git http:// requests.
Since my repository was outside of the basic Doc Root, and I wanted to present similar path names to both git: and http: protocols, I ended up rewriting some URL paths. Also, if you have some form of virtual hosting going on, you might need to do a virtualization rewriting using --interpolated-path=pathtemplate.
HTH, jdl