* [devel] Export git repo via http
@ 2009-01-28 15:03 Eugene Prokopiev
0 siblings, 0 replies; only message in thread
From: Eugene Prokopiev @ 2009-01-28 15:03 UTC (permalink / raw)
To: Devel
Здравствуйте!
Помогите экспортировать 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?
Что я делаю неправильно?
--
С уважением,
Прокопьев Евгений
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-28 15:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-28 15:03 [devel] Export git repo via http Eugene Prokopiev
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git