Thread (19 messages) flat view 19 messages, 8 authors, 2016-06-15

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

From: Erez Zilber <hidden>
Date: 2016-06-15 22:44:49

On Tue, Jun 24, 2008 at 2:48 PM, Johannes Schindelin
[off-list ref] wrote:
Hi,

On Tue, 24 Jun 2008, Erez Zilber wrote:
quoted
On Tue, Jun 24, 2008 at 2:21 PM, Matthias Kestenholz [off-list ref] wrote:
quoted
On Tue, 2008-06-24 at 14:15 +0300, Erez Zilber wrote:
quoted
[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 the
repository on the server.
No, you did not.  Otherwise, the message would not appear.  It can be that
you have _another_ repository on the server, but running
update-server-info there does not help.
Thanks for the quick answer. I'm sure that something _is_ wrong.
Otherwise, everything should have worked already.

I think that I'm using the right repository for git-clone because it's
the same path that I used for git push:

[root@kd001 my_test.git]# git-push --all
ssh://erez.zilber@kites/pub/git/erez.zilber/my_test.git
erez.zilber@kites's password:
Counting objects: 9, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (9/9), 740 bytes, done.
Total 9 (delta 0), reused 0 (delta 0)
To ssh://erez.zilber@kites/pub/git/erez.zilber/my_test.git
 * [new branch]      master -> master

Now, on the server side:

-sh-3.1$ cd my_test.git/
-sh-3.1$ ls info/
exclude
-sh-3.1$ git-update-server-info
-sh-3.1$ ls info/
exclude  refs

looks like git-update-server-info did some work (added the refs file).

Back to the client:

[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?

The path is the same path that was used for pushing the repository.
What did I miss here?

Thanks,
Erez
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help