Whamcloud - gitweb
LU-1199 build: Clean out the build directory
[fs/lustre-release.git] / contrib / git-hooks / tests / commit.dupcid
diff --git a/contrib/git-hooks/tests/commit.dupcid b/contrib/git-hooks/tests/commit.dupcid
new file mode 100644 (file)
index 0000000..7451b59
--- /dev/null
@@ -0,0 +1,16 @@
+LU-553 build: improve checks for commit-msg
+
+Improve the checks done by the commit-msg script.  It now ensures
+that all the parts of the commit message are present.
+- validate that the Change-Id: generated from 'git hash-object' is
+  not empty, since this can happen if git is unhappy with the options
+- check for only one Change-Id: line (multiple Signed-off-by: OK)
+- describe the "component:" field better, with examples
+
+If there was an error committing the message, save a copy to a
+temporary file, so that it can be edited and re-used, instead of
+having to recreate it each time, or fetch it from .git/COMMIT_MSG.
+
+Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
+Change-Id: Ic228da9320229feaab5f70d2a2f4f4ddc6eb32dc
+Change-Id: I15cb3690560400a591598997424cf79dee3a039d