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

Re: cant get git to work over http

From
RHRobert Haines <rhaines@manchester.ac.uk>
Date
Feb 20, 2008, 10:39 UTC
Message-ID
<D5916873-1703-41A2-BDE8-97B3D9038194@manchester.ac.uk>
In-Reply-To
<e26d18e40802191153w691ac5fcl3fa972ca6503b9fb@mail.gmail.com>
Show 26 quoted lines
> i can do this:
>
> $ git-clone /var/www/localhost/htdocs/git/repo/ repo
> Initialized empty Git repository in /home/aeyakovenko/projects/ 
> repo/.git/
> 1 block
>
> and i can do this:
>
> $ 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?

What is the document root set to on your web server? It shouldn't be '/'! When doing git over ssh you need the whole path, but when over http you just need the path from the document root...

So I would expect that your http clone should be: $ git-clone http://aeyakovenko@localhost/git/repo/ repo

What happens when you point a web browser at either http:// aeyakovenko@localhost/var/www/localhost/htdocs/git/repo/ or http:// aeyakovenko@localhost/git/repo/ ?

Cheers, Rob

Previous: Anton Gladkov
Message 22 of 22 in “cant get git to work over http”
  1. Anatoly YakovenkoFeb 19, 2008
  2. Mike HommeyFeb 19, 2008
  3. Anatoly YakovenkoFeb 19, 2008
  4. Mike HommeyFeb 19, 2008
  5. Johannes SchindelinFeb 19, 2008
  6. Anatoly YakovenkoFeb 19, 2008
  7. Jon LoeligerFeb 19, 2008
  8. Anatoly YakovenkoFeb 19, 2008
  9. Johannes SchindelinFeb 19, 2008
  10. Anatoly YakovenkoFeb 19, 2008
  11. Johannes SchindelinFeb 19, 2008
  12. Anatoly YakovenkoFeb 19, 2008
  13. Johannes SchindelinFeb 19, 2008
  14. Jeff KingFeb 19, 2008
  15. Jon LoeligerFeb 19, 2008
  16. Anatoly YakovenkoFeb 19, 2008
  17. Jon LoeligerFeb 19, 2008
  18. Anatoly YakovenkoFeb 19, 2008
  19. Anatoly YakovenkoFeb 19, 2008
  20. Johannes SchindelinFeb 19, 2008
  21. Anton GladkovFeb 20, 2008
  22. Robert HainesFeb 20, 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.