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

Re: problem with Documentation/hooks.txt

From
Nicolas Vilz <niv@iaglans.de>
Date
Jan 7, 2007, 15:28 UTC
Message-ID
<20070107152852.GB10777@hermes.lan.home.vilz.de>
In-Reply-To
<20070107123408.GD6115@admingilde.org>
On Sun, Jan 07, 2007 at 01:34:08PM +0100, Martin Waitz wrote:
Show 11 quoted lines
> hoi :)
> 
> On Sun, Jan 07, 2007 at 11:13:51AM +0000, Alan Chandler wrote:
> > I was just looking at the documentation of the post-commit hook in order 
> > to fix a problem on one of my repositories and I came across this:-
> > 
> > "The default 'post-commit' hook, when enabled, demonstrates how to
> > send out a commit notification e-mail."
> 
> Have a look at the 'update' hook instead.
> Where have you found this hint? We should change the documentation here.

May I repeat my ignored request to check the update-hook-example in Documentation/howto/ for working correctly? It doesn't.

I am no bash guru, but as far as i understand the code, the size of an argument is checked with matchlen. That is imho bad for regexp.

I built the scenario described there and i couldn't commit to the tmp/* branches. I also couldn't commit to the bw/ topics and i couldn't tag anything as the specific role proposed in this example.

as long as the length of the refs-string from the commit matches the one in allowed-users, all is ok. But if it doesn't, which is imho obviously the case if you use regexp in the allowed-users file, it doesn't work.

Unfortunatelly i can't fix that myself, but it would be good to correct that example, if it really doesn't work... or at least please tell me, what i am doing wrong :)

Nicolas Vilz
Previous: Alan Chandler
Message 4 of 4 in “problem with Documentation/hooks.txt”
  1. Alan ChandlerJan 7, 2007
  2. Martin WaitzJan 7, 2007
  3. Alan ChandlerJan 7, 2007
  4. Nicolas VilzJan 7, 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.