From: Mike Hommey Date: Tue, 19 Feb 2008 09:39:45 GMT Subject: Re: cant get git to work over http Message-ID: <20080219093943.GA31006@glandium.org> In-Reply-To: On Mon, Feb 18, 2008 at 11:09:39PM -0800, Anatoly Yakovenko wrote: > > > *.*.*.*- foobar [18/Feb/2008:16:40:12 -0800] "PROPFIND /git/repo > > > HTTP/1.1" 301 320 > > > > Try adding a / at the end of the url you use for your repo. > > ah cool, that was it. The initial push seems to have worked, > > $ git push -v upload master > Pushing to http://aeyakovenko@myserver.com/git/repo/ > Getting pack list > Fetching remote heads... > refs/ > refs/tags/ > refs/heads/ > 'refs/heads/master': up-to-date > > but i cant clone or just normally push and pull the repo. > > $ git-pull > fatal: 'origin': unable to chdir or not a git archive > fatal: The remote end hung up unexpectedly Try again with the GIT_CURL_VERBOSE variable set to 1 and try to see if everything looks right in requests and responses. > and > > $ git-clone http://aeyakovenko@myserver.com/git/repo/ foobar > Initialized empty Git repository in /home/aeyakovenko/projects/foobar/.git/ > cat: /home/aeyakovenko/projects/foobar/.git/refs/remotes/origin/master: > No such file or directory > /usr/bin/git-clone: line 450: cd: > /home/aeyakovenko/projects/foobar/.git/refs/remotes/origin: No such > file or directory > fatal: : not a valid SHA1 > fatal: Not a valid object name HEAD The error message is strange... Anyways, you might want to run this command under sh -x (i.e. sh -x $(which git-clone) http://aeyakovenko@myserver.com/git/repo/ foobar) What version of git are you using ? Mike