{"thread":{"id":"13691","subject":"Invalid path on new Git installation","startedAt":"2008-05-27T14:58:05Z","lastAt":"2008-05-27T15:51:58Z","messageCount":4,"participants":["Marcus","Luciano Rocha","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"77865","messageId":"8345bd80805270758j1315234bwf3b16607c95c9620@mail.gmail.com","threadId":"13691","inReplyTo":null,"subject":"Invalid path on new Git installation","fromName":"Marcus","fromEmail":"prima@wordit.com","sentAt":"2008-05-27T14:58:05Z","receivedAt":"2008-05-27T14:58:05Z","isPatch":false,"sender":{"key":"prima@wordit.com","avatar":null},"body":"Can anybody help me with defining a valid path to a Git repo on a new\ninstallation?\nI just built Git on a webserver (a VPS so I have root access). When I\ntry clone or push I get this error:\n\nfatal: '/git/watchsite.git': unable to chdir or not a git archive\nfatal: The remote end hung up unexpectedly\nfetch-pack from 'ssh://me@mydomain.com/git/projectname.git' failed.\n\nWhy this when I can use wget on this path:\nwget mydomain.com/git/projectname.git/file.html\nThe above successfully downloads the file, so the path is valid, right?\nI also did \"git init\" on the remote repo (not sure if that's necessary?).\n\nI tried the following commands locally and all fail with the error above:\n\ngit clone ssh://me@mydomain.com/git/projectname.git/\n\ngit clone http://mydomain.com/git/projectname.git/\n\ngit push ssh://me@mydomain.com/git/projectname.git/ master\n\n\nIs there a syntax error or something I need to set up on the remote server?\n\nThanks,\n\nMarcus\n"},{"id":"77866","messageId":"20080527151406.GA16378@bit.office.eurotux.com","threadId":"13691","inReplyTo":"8345bd80805270758j1315234bwf3b16607c95c9620@mail.gmail.com","subject":"Re: Invalid path on new Git installation","fromName":"Luciano Rocha","fromEmail":"luciano@eurotux.com","sentAt":"2008-05-27T15:14:06Z","receivedAt":"2008-05-27T15:14:06Z","isPatch":false,"sender":{"key":"luciano@eurotux.com","avatar":null},"body":"On Tue, May 27, 2008 at 03:58:05PM +0100, Marcus wrote:\n> Can anybody help me with defining a valid path to a Git repo on a new\n> installation?\n> I just built Git on a webserver (a VPS so I have root access). When I\n> try clone or push I get this error:\n> \n> fatal: '/git/watchsite.git': unable to chdir or not a git archive\n> fatal: The remote end hung up unexpectedly\n> fetch-pack from 'ssh://me@mydomain.com/git/projectname.git' failed.\n> \n> Why this when I can use wget on this path:\n> wget mydomain.com/git/projectname.git/file.html\n> The above successfully downloads the file, so the path is valid, right?\n\nssh://me@mydomain.com/git/projectname.git means the folder\n/git/projectname.git in host mydomain.com\n\nhttp://mydomain.com/git/projectname.git/file.html means whatever folder\nyour webserver is mapping /git/projectname.git to. Usually,\n/var/www/html/git/projectname.git.\n\n> I also did \"git init\" on the remote repo (not sure if that's necessary?).\n\nWhat is the correct path on the remote? Note that ssh://host/dir isn't\nthe same as host:dir (both are acceptable), as the latter means ~me/dir,\nwhile the former means /dir.\n\nYou could switch to the me@host:path location, or add a ~/:\nssh://me@host/~/dir\n\n-- \nLuciano Rocha <luciano@eurotux.com>\nEurotux Informática, S.A. <http://www.eurotux.com/>\n"},{"id":"77869","messageId":"8345bd80805270842y5e495109x350ef378795ada27@mail.gmail.com","threadId":"13691","inReplyTo":"20080527151406.GA16378@bit.office.eurotux.com","subject":"Re: Invalid path on new Git installation","fromName":"Marcus","fromEmail":"prima@wordit.com","sentAt":"2008-05-27T15:42:41Z","receivedAt":"2008-05-27T15:42:41Z","isPatch":false,"sender":{"key":"prima@wordit.com","avatar":null},"body":"On Tue, May 27, 2008 at 4:14 PM, Luciano Rocha <luciano@eurotux.com> wrote:\n> What is the correct path on the remote?\n\nThe full path to the Git repo is:\n/home/admin/mydomain.com/git/projectname.git\n\nI tried:\ngit clone ssh://admin@mydomain.com/~/git/projectname.git\n\nIt gives the same error.\n\nThanks,\n\nMarcus\n"},{"id":"77870","messageId":"483C2E1E.3040302@viscovery.net","threadId":"13691","inReplyTo":"8345bd80805270842y5e495109x350ef378795ada27@mail.gmail.com","subject":"Re: Invalid path on new Git installation","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2008-05-27T15:51:58Z","receivedAt":"2008-05-27T15:51:58Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Marcus schrieb:\n> On Tue, May 27, 2008 at 4:14 PM, Luciano Rocha <luciano@eurotux.com> wrote:\n>> What is the correct path on the remote?\n> \n> The full path to the Git repo is:\n> /home/admin/mydomain.com/git/projectname.git\n> \n> I tried:\n> git clone ssh://admin@mydomain.com/~/git/projectname.git\n> \n> It gives the same error.\n\nTry\n\ngit clone admin@mydomain.com:/home/admin/mydomain.com/git/projectname.git\n\nor (assuming /home/admin is your home directory)\n\ngit clone admin@mydomain.com:mydomain.com/git/projectname.git\n\nor (if you can't live without the ssh: protocol specifier)\n\ngit clone \\\n  ssh://admin@mydomain.com/home/admin/mydomain.com/git/projectname.git\n\n-- Hannes\n"}]}