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

Re: Cloning from kernel.org, then switching to another repo

From
Jeff King <peff@peff.net>
Date
Nov 13, 2007, 04:48 UTC
Message-ID
<20071113044810.GA11731@sigill.intra.peff.net>
In-Reply-To
<9e4733910711122030q7bbf6057ubb6b5b27e1885500@mail.gmail.com>
On Mon, Nov 12, 2007 at 11:30:17PM -0500, Jon Smirl wrote:
> Execute bit was not set. I just set it for all the scripts. +x is not

I assume by "all the scripts" you mean "all of the post-update scripts in my repositories" and not "all of the hook scripts in this repository". Because I think some of the included hooks are not suitable to run without some configuration, which is why they are disabled by default.

> getting turned on with a default git init-db. I just made a new repo
> to check, no +x on the scripts.

Right. git-init just copies the files from the templates directory (probably /usr/share/git-core/templates or similar), so if the hook is not enabled there, it will not be in the new repo. And git ships with all hooks disabled by default.

cogito used to enable the post-update hook by default for bare repos (if you called cg-admin-setuprepo), but git never has.

It is mentioned in the "exporting a git repository via http" section of the user manual.

-Peff
Previous: Jon SmirlNext: Matthieu Moy
Message 12 of 22 in “Cloning from kernel.org, then switching to another repo”
  1. Jon SmirlNov 12, 2007
  2. Johannes SchindelinNov 12, 2007
  3. Jon SmirlNov 12, 2007
  4. Johannes SchindelinNov 12, 2007
  5. Jon SmirlNov 12, 2007
  6. Johannes SchindelinNov 12, 2007
  7. Jon SmirlNov 12, 2007
  8. Jon SmirlNov 12, 2007
  9. Jeff KingNov 13, 2007
  10. Jeff KingNov 13, 2007
  11. Jon SmirlNov 13, 2007
  12. Jeff KingNov 13, 2007
  13. Matthieu MoyNov 13, 2007
  14. Junio C HamanoNov 13, 2007
  15. Jon SmirlNov 13, 2007
  16. Jakub NarebskiNov 13, 2007
  17. Linus TorvaldsNov 12, 2007
  18. Johannes SchindelinNov 12, 2007
  19. Jon SmirlNov 12, 2007
  20. Jeff KingNov 13, 2007
  21. Jon SmirlNov 13, 2007
  22. Jon SmirlNov 12, 2007

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.