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

Re: git-clone works with ssh but not with http/https/git

From
Matthias Kestenholz <mk@spinlock.ch>
Date
Jun 24, 2008, 11:21 UTC
Message-ID
<1214306517.6441.10.camel@localhost>
In-Reply-To
<ce513bcc0806240415h669d1725uf7b6e495995ab459@mail.gmail.com>
On Tue, 2008-06-24 at 14:15 +0300, Erez Zilber wrote:
Show 20 quoted lines
> Hi,
> 
> I'm able to git-clone a tree using ssh:
> 
> [root@kd001 t]# git-clone
> ssh://erez.zilber@kites/pub/git/erez.zilber/my_test.git
> Initialized empty Git repository in /home/erez.zilber/work/tmp/t/my_test/.git/
> erez.zilber@kites's password:
> remote: Counting objects: 9, done.
> remote: Compressing objects: 100% (5/5), done.
> remote: Total 9 (delta 0), reused 0 (delta 0)
> Receiving objects: 100% (9/9), done.
> 
> However, it doesn't work with http/https/git:
> 
> [root@kd001 t]# git-clone http://kites/pub/git/erez.zilber/my_test.git
> Initialized empty Git repository in /home/erez.zilber/work/tmp/t/my_test/.git/
> Cannot get remote repository information.
> Perhaps git-update-server-info needs to be run there?
> 

Maybe you should run git-update-server-info in the repository on the server?

> [root@kd001 t]# git-clone https://kites/pub/git/erez.zilber/my_test.git
> Initialized empty Git repository in /home/erez.zilber/work/tmp/t/my_test/.git/
> Cannot get remote repository information.
> Perhaps git-update-server-info needs to be run there?
Maybe you should run git-update-server-info in the repository on the
server?

By the way, try enabling the post-update hook -- it runs update-server-info for you automatically after pushing to your server (make the script $GIT_DIR/hooks/post-update executable)

Show 6 quoted lines
> [root@kd001 t]# git-clone git://kites/pub/git/erez.zilber/my_test.git
> Initialized empty Git repository in /home/erez.zilber/work/tmp/t/my_test/.git/
> kites[0: 172.16.1.11]: errno=Connection refused
> fatal: unable to connect a socket (Connection refused)
> fetch-pack from 'git://kites/pub/git/erez.zilber/my_test.git' failed.
> 

Is the git daemon running on your server? You need to configure inetd or git-daemon yourself, that is not done automatically for you.

-- 
http://spinlock.ch/blog/
Previous: Erez ZilberNext: Erez Zilber
Message 2 of 20 in “git-clone works with ssh but not with http/https/git”
  1. Erez ZilberJun 24, 2008
  2. Matthias KestenholzJun 24, 2008
  3. Erez ZilberJun 24, 2008
  4. Johannes SchindelinJun 24, 2008
  5. Erez ZilberJun 24, 2008
  6. Jakub NarebskiJun 24, 2008
  7. Erez ZilberJun 24, 2008
  8. Anton GladkovJun 24, 2008
  9. Anton GladkovJun 24, 2008
  10. Matthias KestenholzJun 24, 2008
  11. Erez ZilberJun 24, 2008
  12. Jakub NarebskiJun 24, 2008
  13. Matthieu MoyJun 24, 2008
  14. Johannes SixtJun 24, 2008
  15. Robert HainesJun 24, 2008
  16. Erez ZilberJun 24, 2008
  17. Robert HainesJun 24, 2008
  18. Erez ZilberJun 24, 2008
  19. Daniel BarkalowJun 24, 2008
  20. Erez ZilberJun 25, 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.