X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=contrib%2Fgit-hooks%2Fcommit-msg;h=28aa93c22620ec04dd706888264501ecfb9b8027;hp=c1fed2ee1f9b4a43bb6ee5a6daf65c9d49cfbfad;hb=605a139a193e4ef212560673b4bb93eec763d088;hpb=ee01da2222471b03711567820a80345ce6635293;ds=sidebyside diff --git a/contrib/git-hooks/commit-msg b/contrib/git-hooks/commit-msg index c1fed2e..28aa93c 100755 --- a/contrib/git-hooks/commit-msg +++ b/contrib/git-hooks/commit-msg @@ -99,6 +99,13 @@ function do_changeid() { HAS_CHANGEID=true } +function do_testparams() { + ck_wrapup + + grep -q mdsfilesystemtype <<< $LINE && + error "mdsfilesystemtype is deprecated, use mdtfilesystemtype" +} + # All "innocuous" lines specify a person and email address # function do_innocuous() { @@ -168,7 +175,7 @@ usage() { exec 1>&2 cat <<- EOF - See http://wiki.whamcloud.com/display/PUB/Commit+Comments + See https://wiki.whamcloud.com/display/PUB/Commit+Comments for full details. An example valid commit comment is: LU-nnn component: short description of change under 64 columns @@ -215,9 +222,9 @@ exec 3< "$ORIGINAL" 4> "$REVISED" || exit 1 while IFS= read -u3 LINE; do ((NUM += 1)) case "$LINE" in - $SIGNOFF* ) do_signoff ;; - $CHANGEID* ) do_changeid ;; - $TESTPARAMS* ) ck_wrapup ;; + $SIGNOFF* ) do_signoff ;; + $CHANGEID* ) do_changeid ;; + $TESTPARAMS* ) do_testparams ;; "") HAS_LAST_BLANK=true