Whamcloud - gitweb
LU-3568 contrib: ignore initial comments 21/6921/4
authorBruce Korb <bruce_korb@xyratex.com>
Thu, 11 Jul 2013 18:16:06 +0000 (11:16 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 15 Jul 2013 16:17:08 +0000 (16:17 +0000)
commita9c1d872bdfc8a8b7ecd43b3d2081a183c7bda7e
tree276c288d8baf728d8381e746c4d00738b369adc5
parent809d46b65bcd1cbca5b75b3c5736d85c77afa225
LU-3568 contrib: ignore initial comments

Sometimes, git likes to insert "git status" commentary
at the top of an auto-generated commit message starter
file. If the committer carelessly neglects to remove
the stuff, the script thinks the message has a missing
commit summary line.

* contrib/tests/test-commit-msg.sh: pass through xtrace setting
* contrib/tests/commit.ok_commit: This message with cruft
* contrib/commit-msg: use a flag instead of a line number to see
  if we still need to process the summary line.

Signed-off-by: Bruce Korb <bruce_korb@xyratex.com>
Reviewed-by: Cheng Shao <cheng_shao@xyratex.com>
Xyratex-bug-id: MRP-1160
Change-Id: I46e2951f2e28cbbf53bf2e96e420ddcea7c0d991
Reviewed-on: http://review.whamcloud.com/6921
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
contrib/git-hooks/commit-msg
contrib/git-hooks/tests/commit.ok_comment [new file with mode: 0644]
contrib/git-hooks/tests/test-commit-msg.sh