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