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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 24, 2008 at 2:21 PM, Matthias Kestenholz <mk@xxxxxxxxxxx> wrote:> On Tue, 2008-06-24 at 14:15 +0300, Erez Zilber wrote:>> 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?
Forgot to mention - I tried to run git-update-server-info from therepository on the server. I got the same results. BTW - if it works OKwith ssh, I can only guess that git-update-server-info won't help forhttp. right?
>>> [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)
Make it executable on the client side before pushing (i.e. in.git/hooks/post-update) or on the server side after pushing?
>>> [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.>
I ran git-daemon on the server side like this:
sudo git-daemon --base-path=/pub/git/ --export-all --listen=kites
Erez��.n��������+%������w��{.n��������n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�m


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux