Re: cant get git to work over http
- From
Anatoly Yakovenko <aeyakovenko@gmail.com>
- Date
- Feb 19, 2008, 22:13 UTC
- Message-ID
- <e26d18e40802191413w48fe4a71hd7895b09d15cb44e@mail.gmail.com>
- In-Reply-To
- <e26d18e40802191359r4c435818n4ae7b357d452d51e@mail.gmail.com>
On Feb 19, 2008 1:59 PM, Anatoly Yakovenko <aeyakovenko@gmail.com> wrote:
> > Something is fishy here. Is your repository bare or not? > > no, why does it need to be bare? >
so bare or not ssh works but http doesnt:
$ git-clone ssh://aeyakovenko@localhost/var/www/localhost/htdocs/git/bare bare-ssh Initialized empty Git repository in /home/aeyakovenko/projects/bare-ssh/.git/ Receiving objects: 100% (3/3), done. remote: Counting objects: 3, done. remote: Total 3 (delta 0), reused 0 (delta 0)
and running over a bare directory doesn't work:
$ git-clone http://aeyakovenko@localhost/git/bare bare Initialized empty Git repository in /home/aeyakovenko/projects/bare/.git/ Cannot get remote repository information. Perhaps git-update-server-info needs to be run there?
apache acess log:
127.0.0.1 - - [19/Feb/2008:14:10:19 -0800] "GET /git/bare/info/refs HTTP/1.1" 401 460
i feel like i am taking crazy pills, why is apache looking for /git/bare/info/refs, and no the directory from the doc root?