Re: Invalid path on new Git installation

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

 



On Tue, May 27, 2008 at 03:58:05PM +0100, Marcus wrote:
> Can anybody help me with defining a valid path to a Git repo on a new
> installation?
> I just built Git on a webserver (a VPS so I have root access). When I
> try clone or push I get this error:
> 
> fatal: '/git/watchsite.git': unable to chdir or not a git archive
> fatal: The remote end hung up unexpectedly
> fetch-pack from 'ssh://me@xxxxxxxxxxxx/git/projectname.git' failed.
> 
> Why this when I can use wget on this path:
> wget mydomain.com/git/projectname.git/file.html
> The above successfully downloads the file, so the path is valid, right?

ssh://me@xxxxxxxxxxxx/git/projectname.git means the folder
/git/projectname.git in host mydomain.com

http://mydomain.com/git/projectname.git/file.html means whatever folder
your webserver is mapping /git/projectname.git to. Usually,
/var/www/html/git/projectname.git.

> I also did "git init" on the remote repo (not sure if that's necessary?).

What is the correct path on the remote? Note that ssh://host/dir isn't
the same as host:dir (both are acceptable), as the latter means ~me/dir,
while the former means /dir.

You could switch to the me@host:path location, or add a ~/:
ssh://me@host/~/dir

-- 
Luciano Rocha <luciano@xxxxxxxxxxx>
Eurotux Informática, S.A. <http://www.eurotux.com/>

Attachment: pgpM3MAhfjUJ8.pgp
Description: PGP signature


[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