Thread (16 messages) flat view 16 messages, 6 authors, 2016-06-15

Re: clong an empty repo over ssh causes (harmless) fatal

From: Björn Steinbrink <hidden>
Date: 2016-06-15 22:47:20

Possibly related (same subject, not in this thread)

On 2009.08.31 15:10:32 -0400, Jeff King wrote:
On Mon, Aug 31, 2009 at 07:25:22PM +0200, Matthieu Moy wrote:
quoted
Since the client and server are the same machine:

    $ git clone ssh://sitaram@localhost/home/sitaram/t/a b

I'd bet Sitaram has two installations of git, and plain ssh to the
machine points to the old one (like a $PATH set in ~/.login and not
~/.profile or something like that).
Oh, indeed. I didn't notice that his host was @localhost. :)

But yes, that would be my guess, as well. Trying "ssh sitaram@localhost
git version" would be a good clue.
I see the problem here, too.

doener@atjola:~ $ (mkdir a; cd a; git init)
Initialized empty Git repository in /home/doener/a/.git/

doener@atjola:~ $ git clone localhost:a b
Initialized empty Git repository in /home/doener/b/.git/
warning: You appear to have cloned an empty repository.
fatal: The remote end hung up unexpectedly

doener@atjola:~ $ ssh localhost git --version
git version 1.6.4.2.236.gf324c

Björn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help