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

Re: [PATCH] cg-commit: Fix a typo that would inhibit running of post-commit script:

From
Petr Baudis <pasky@suse.cz>
Date
Sep 24, 2006, 17:39 UTC
Message-ID
<20060924173958.GV20017@pasky.or.cz>
In-Reply-To
<87ac4zq237.fsf@rho.meyering.net>

Dear diary, on Sat, Sep 16, 2006 at 05:10:36PM CEST, I got a letter where Jim Meyering <jim@meyering.net> said that...

Show 22 quoted lines
> Jonas Fonseca <fonseca@diku.dk> wrote:
> > Jim Meyering <jim@meyering.net> wrote Thu, Aug 24, 2006:
> >> I tried cg-commit with a commit hook, but the hook never ran.
> >> The problem was a typo:
> >>
> >> Fix a typo that would inhibit running the post-commit script:
> >> s/commit-post/post-commit/.
> >
> > If I remember correctly, historically, the commit-post existed before
> > the post-commit appeared. You can see that it is documented in the man
> > page so it is not a typo.
> >
> > However, this should certainly be updated, but I think a better fix
> > would be to transitionally warn the user about the existence of the
> > commit-post hook before using it in favour of post-commit.
> 
> How about this?
> Check for both and if there's exactly one, use that.
> If it's the old one, give a diagnostic suggesting to rename it.
> If both exist, execute neither, give a diagnostic and fail.
> 
> If you like this, I'll prepare a patch.
That would be awesome. :-)
Thanks in advance,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
Previous: Jim Meyering
Message 4 of 4 in “cg-commit: Fix a typo that would inhibit running of post-commit script:”
  1. cg-commit: Fix a typo that would inhibit running of post-commit script:Jim Meyering, Aug 24, 2006
  2. Jonas FonsecaAug 25, 2006
  3. Jim MeyeringSep 16, 2006
  4. Petr BaudisSep 24, 2006

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.