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

Re: [gitolite] symlink hooks instead of copying them

From
SCSitaram Chamarty <sitaram@atc.tcs.com>
Date
Feb 4, 2010, 01:35 UTC
Message-ID
<20100204013556.GA2590@atcmail.atc.tcs.com>
In-Reply-To
<20100203204723.GA30157@lapse.rw.madduck.net>
On Thu, Feb 04, 2010 at 09:47:23AM +1300, martin f krafft wrote:
> Dear Sitaram, dear Teemo, dear gitolite-fans,
> 
> Gitolite currently copies hooks to repositories. For upgrades, it
> must thus ensure that all hooks are also upgraded.

I forgot... part of the reason this "copy all hooks over each time you run install" is also to give people an easy way to update the hooks when the repo was *copied* from elsewhere, and not *created* by gitolite in the first place.

Basically I'm paranoid about that "update" hook, without which the branch level access control doesn't work at all.

So this will still need to be done. Or you'll have to provide some other command that will sweep through all repos in the $REPO_BASE and check that the symlink is pointing to the right place etc etc.

Any other ways of doing this? I'd rather keep it as is, if it's OK with you, except for changing the cp to ln of course.

Previous: Sitaram ChamartyNext: martin f krafft
Message 3 of 8 in “[gitolite] symlink hooks instead of copying them”
  1. martin f krafftFeb 3, 2010
  2. Sitaram ChamartyFeb 4, 2010
  3. Sitaram ChamartyFeb 4, 2010
  4. martin f krafftFeb 4, 2010
  5. Sitaram ChamartyFeb 4, 2010
  6. martin f krafftFeb 4, 2010
  7. Bill LearFeb 4, 2010
  8. martin f krafftFeb 4, 2010

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.