Code

[PATCH] pre-commit sample hook: do not barf on the initial import
authorJunio C Hamano <junkio@cox.net>
Sun, 29 Jan 2006 22:52:16 +0000 (14:52 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 29 Jan 2006 22:52:16 +0000 (14:52 -0800)
commitd37fd03222ad6b38aa6e237f5f191238c0544850
tree12188d86cc5cf5f7f7bb9bded98715967bd03c3f
parent181dc776956b4d265891ac70514ed214e4b7564a
[PATCH] pre-commit sample hook: do not barf on the initial import

The example hook barfs on the initial import.  Ideally it should
produce a diff from an empty tree, but for now let's stop at
squelching the bogus error message.  Often an initial import
involves tons of badly formatted files from foreign SCM, so not
complaining about them like this patch does might actually be a
better idea than enforcing the "Perfect Patch" format on them.

Signed-off-by: Junio C Hamano <junkio@cox.net>
templates/hooks--pre-commit