X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=contrib%2Fgit-hooks%2Ftests%2Fcommit.badcid;fp=contrib%2Fgit-hooks%2Ftests%2Fcommit.badcid;h=286401cd5993328878229502091f29e45da0efcf;hp=0000000000000000000000000000000000000000;hb=25c93758d6b1136d268fe3fcc1c4979c17463c0b;hpb=27f77f5de6fe27611c9f819f8cdaba89d70f15d9 diff --git a/contrib/git-hooks/tests/commit.badcid b/contrib/git-hooks/tests/commit.badcid new file mode 100644 index 0000000..286401c --- /dev/null +++ b/contrib/git-hooks/tests/commit.badcid @@ -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 + +Change-Id: 0cb839bbc0ebcea4fcf515a5da2221c8f1b353ac