ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Eugene Prokopiev <enp@altlinux.org>
To: Devel@lists.altlinux.org
Subject: [devel] Export git repo via http
Date: Wed, 28 Jan 2009 18:03:13 +0300
Message-ID: <f7a739430901280703m23b1481dpa975f34febcb8ce5@mail.gmail.com> (raw)

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

Помогите экспортировать 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?

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

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


                 reply	other threads:[~2009-01-28 15:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7a739430901280703m23b1481dpa975f34febcb8ce5@mail.gmail.com \
    --to=enp@altlinux.org \
    --cc=Devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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