Skip to main content
9 events
when toggle format what by license comment
Nov 10, 2017 at 23:54 comment added Steve @larsks Thanks :-) I meant my comment not as a criticism of your original answer, but as a heads-up to others that not all hooks expect the same input. In fact, the original answer will work with post-receive for the first command only (as it reads stdin), which makes debugging confusing at first.
Nov 7, 2017 at 21:30 comment added larsks @Steve, fixed that for you.
Nov 7, 2017 at 21:29 history edited larsks CC BY-SA 3.0
added example for scripts that expect stdin
Nov 7, 2017 at 21:13 comment added Steve Note that while this works nicely for hooks which receive parameters, such as post-checkout, it will not work for hooks which receive data on stdin, such as post-receive.
Apr 13, 2017 at 11:17 comment added larsks git review only overrides the default hook trigger if you ask it to. You could manually configure the git review hook without a problem. In general, I don't think anything should be overwriting your git hooks without your permission; if something does, that thing is broken.
Apr 13, 2017 at 11:12 comment added sorin I don't see this as an effective way because some tools like "git review" would override the default hook trigger. The only safe way to implement this is to make git support multiple triggers itself.
May 8, 2015 at 15:00 vote accept asfallows
May 7, 2015 at 14:52 comment added asfallows This is a good solution, and may be the path I take. I expanded my question a bit in response; I'd love to know if there's a way to do it without interfering with the existing setup.
May 7, 2015 at 14:44 history answered larsks CC BY-SA 3.0