From: Junio C Hamano <junkio@cox.net>
To: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: git@vger.kernel.org
Subject: Re: [PROBLEM] Checkout from cloned repository does not work
Date: Fri, 02 Sep 2005 11:13:36 -0700 [thread overview]
Message-ID: <7vpsrrgwxb.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: 84144f0205090204201f74e425@mail.gmail.com
Pekka Enberg <penberg@cs.helsinki.fi> writes:
> I cannot checkout from a cloned git repository I have created. I am
> using git 0.99.5 from Gentoo portage.
> Following the tutorial, I create new git repository:
>...
> Now on the server, I create a repository:
>
> $ mkdir git-test.git
> GIT_DIR=git-test.git/ git-init-db
You would need 'chmod +x git-test.git/hooks/post-update' here if
you are allowing people to pull over http from this repository.
I just realized that where this was documented was quite obscure
in the tutorial. I'll update it with the appended patch.
> After which I clone the newly created repository like this:
>
> $ git clone http://www.remote.server/~penberg/git-test.git cloned
> defaulting to local storage area
> Somebody should define smarter http server protocol
>
> Now, the problem is that checkout does not work:
The problem is that 'git clone' does not support cloning over
http from servers that are not properly prepared. This 'git
clone' exited with non-zero status with an error message, didn't
it?
-->8-- -->8-- -->8--
Mention post-update when we first talk about publishing a repository.
There is more detailed instruction for `project lead` later in
the tutorial to talk about the same, but at this point in the
flow of tutorial, the first time reader has no way of knowing it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt
--- a/Documentation/tutorial.txt
+++ b/Documentation/tutorial.txt
@@ -1103,6 +1103,12 @@ your login shell is `bash`, only `.bashr
`.bash_profile`. As a workaround, make sure `.bashrc` sets up
`$PATH` so that you can run `git-receive-pack` program.
+[NOTE]
+If you plan to publish this repository to be accessed over http,
+you should do `chmod +x my-git.git/hooks/post-update` at this
+point. This makes sure that every time you push into this
+repository, `git-update-server-info` is run.
+
Your "public repository" is now ready to accept your changes.
Come back to the machine you have your private repository. From
there, run this command:
next prev parent reply other threads:[~2005-09-02 18:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-02 11:20 [PROBLEM] Checkout from cloned repository does not work Pekka Enberg
2005-09-02 18:13 ` Junio C Hamano [this message]
2005-09-03 6:49 ` Pekka Enberg
2005-09-03 7:31 ` Junio C Hamano
2005-09-03 7:43 ` Pekka Enberg
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=7vpsrrgwxb.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).