* Invalid path on new Git installation
@ 2008-05-27 14:58 Marcus
2008-05-27 15:14 ` Luciano Rocha
0 siblings, 1 reply; 4+ messages in thread
From: Marcus @ 2008-05-27 14:58 UTC (permalink / raw)
To: git
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@mydomain.com/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?
I also did "git init" on the remote repo (not sure if that's necessary?).
I tried the following commands locally and all fail with the error above:
git clone ssh://me@mydomain.com/git/projectname.git/
git clone http://mydomain.com/git/projectname.git/
git push ssh://me@mydomain.com/git/projectname.git/ master
Is there a syntax error or something I need to set up on the remote server?
Thanks,
Marcus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Invalid path on new Git installation
2008-05-27 14:58 Invalid path on new Git installation Marcus
@ 2008-05-27 15:14 ` Luciano Rocha
2008-05-27 15:42 ` Marcus
0 siblings, 1 reply; 4+ messages in thread
From: Luciano Rocha @ 2008-05-27 15:14 UTC (permalink / raw)
To: Marcus; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]
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@mydomain.com/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@mydomain.com/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@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Invalid path on new Git installation
2008-05-27 15:14 ` Luciano Rocha
@ 2008-05-27 15:42 ` Marcus
2008-05-27 15:51 ` Johannes Sixt
0 siblings, 1 reply; 4+ messages in thread
From: Marcus @ 2008-05-27 15:42 UTC (permalink / raw)
To: git
On Tue, May 27, 2008 at 4:14 PM, Luciano Rocha <luciano@eurotux.com> wrote:
> What is the correct path on the remote?
The full path to the Git repo is:
/home/admin/mydomain.com/git/projectname.git
I tried:
git clone ssh://admin@mydomain.com/~/git/projectname.git
It gives the same error.
Thanks,
Marcus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Invalid path on new Git installation
2008-05-27 15:42 ` Marcus
@ 2008-05-27 15:51 ` Johannes Sixt
0 siblings, 0 replies; 4+ messages in thread
From: Johannes Sixt @ 2008-05-27 15:51 UTC (permalink / raw)
To: Marcus; +Cc: git
Marcus schrieb:
> On Tue, May 27, 2008 at 4:14 PM, Luciano Rocha <luciano@eurotux.com> wrote:
>> What is the correct path on the remote?
>
> The full path to the Git repo is:
> /home/admin/mydomain.com/git/projectname.git
>
> I tried:
> git clone ssh://admin@mydomain.com/~/git/projectname.git
>
> It gives the same error.
Try
git clone admin@mydomain.com:/home/admin/mydomain.com/git/projectname.git
or (assuming /home/admin is your home directory)
git clone admin@mydomain.com:mydomain.com/git/projectname.git
or (if you can't live without the ssh: protocol specifier)
git clone \
ssh://admin@mydomain.com/home/admin/mydomain.com/git/projectname.git
-- Hannes
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-27 15:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-27 14:58 Invalid path on new Git installation Marcus
2008-05-27 15:14 ` Luciano Rocha
2008-05-27 15:42 ` Marcus
2008-05-27 15:51 ` Johannes Sixt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).