git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PROBLEM] Checkout from cloned repository does not work

From
Junio C Hamano <junkio@cox.net>
Date
Sep 3, 2005, 07:31 UTC
Message-ID
<7vmzmua9ow.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<1125730179.29087.3.camel@localhost>
Pekka Enberg <penberg@cs.helsinki.fi> writes:
> I double checked that -- no, it does not print out an error. I copied
> the exact output in the original mail. 

Which ended with the error message "Somebody should define smarter http server protocol". That's from git-clone-script and the echo to generate the output is followed by "exit 1".

Show 8 quoted lines
>> +[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.
>
> How about "must do chmod before pushing anything to this repository"? I
> think I tried chmod at some point but always did it too late (i.e. after
> the initial push).

I think "at this point" in the flow of tutorial text would be explicit enough, but I am not very good at writing documentation, so rewording/clarifying patches are always welcome.

You could always run git-update-server-info manually after pushing if you forgot to enable the hook. If you are paranoid you could run it with '-f' flag to rebuild the info from scratch.

Previous: Pekka EnbergNext: Pekka Enberg
Message 4 of 5 in “[PROBLEM] Checkout from cloned repository does not work”
  1. Pekka EnbergSep 2, 2005
  2. Junio C HamanoSep 2, 2005
  3. Pekka EnbergSep 3, 2005
  4. Junio C HamanoSep 3, 2005
  5. Pekka EnbergSep 3, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.