[devel] Export git repo via http

Eugene Prokopiev =?iso-8859-1?q?enp_=CE=C1_altlinux=2Eorg?=
Ср Янв 28 18:03:13 MSK 2009


Здравствуйте!

Помогите экспортировать git-репозитарий по http.

Создаю репозитарий на сервере:

$ mkdir myrepo
$ cd myrepo
$ git init
$ echo hello > README
$ git add .
$ git commit -a -m 'first commit'
$ git update-server-info
$ cp .git/hooks/post-update.sample .git/hooks/post-update

Проверяю, виден ли он на клиенте:

$ curl --netrc --location -v http://10.0.101.110/myrepo/
* About to connect() to 10.0.101.110 port 80 (#0)
*   Trying 10.0.101.110... connected
* Connected to 10.0.101.110 (10.0.101.110) port 80 (#0)
* Server auth using Basic with user 'enp'
> GET /myrepo/ HTTP/1.1
> Authorization: Basic ZW5wOmVucHB3ZA==
> User-Agent: curl/7.18.1 (i586-alt-linux-gnu) libcurl/7.18.1 OpenSSL/0.9.8d zlib/1.2.3 libidn/1.8
> Host: 10.0.101.110
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/0.6.34
< Date: Wed, 28 Jan 2009 15:00:13 GMT
< Content-Type: text/html
< Transfer-Encoding: chunked
< Connection: keep-alive
<
<html>
<head><title>Index of /myrepo/</title></head>
<body bgcolor="white">
<h1>Index of /myrepo/</h1><hr><pre><a href="../">../</a>
<a href="README">README</a>
 28-Jan-2009 14:57                   6
</pre><hr></body>
</html>
* Connection #0 to host 10.0.101.110 left intact
* Closing connection #0

Пытаюсь клонировать:

$ git-clone http://10.0.101.110/myrepo/
Initialized empty Git repository in /home/enp/git/myrepo/.git/
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?

Что я делаю неправильно?

-- 
С уважением,
Прокопьев Евгений


Подробная информация о списке рассылки Devel