From: Adam Mercer Date: Wed, 27 Feb 2013 14:30:29 GMT Subject: Re: post-receive-email hook with custom_showrev Message-ID: In-Reply-To: <512DB8D6.9010109@alum.mit.edu> On Wed, Feb 27, 2013 at 1:42 AM, Michael Haggerty wrote: > 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