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

Re: post-receive-email hook with custom_showrev

From
Adam Mercer <ramercer@gmail.com>
Date
Feb 27, 2013, 14:30 UTC
Message-ID
<CA+mfgz3XsVB9hk+0rG0VnJQL9P9oD-wrrTX35xpsF2kM9GqJMQ@mail.gmail.com>
In-Reply-To
<512DB8D6.9010109@alum.mit.edu>
On Wed, Feb 27, 2013 at 1:42 AM, Michael Haggerty <mhagger@alum.mit.edu> wrote:
Show 10 quoted lines
> If I type that into my .git/config file then type "git config
> hooks.showrev" I get "bad config file line 7 in .git/config" due to the
> "\$".  I think the quoting in the comment in post-receive-email is
> written as if it would be passed via the command line to "git config"; i.e.,
>
>     git config hooks.showrev "t=%s; printf 'http://.../?id=%%s' \$t;
> echo;echo; git show -C \$t; echo"
>
> Granted, the docs don't make that clear.  See git-config(1) for the
> details of the config file syntax.
Thanks a lot that did the trick! I imagined it'd be some quoting issue.
Cheers
Adam
Previous: Michael Haggerty
Message 4 of 4 in “post-receive-email hook with custom_showrev”
  1. Adam MercerFeb 22, 2013
  2. Adam MercerFeb 26, 2013
  3. Michael HaggertyFeb 27, 2013
  4. Adam MercerFeb 27, 2013

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.