X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=contrib%2Fgit-hooks%2Fcommit-msg;h=d28e40bb7c36b991122e47ddd8be697da53e08ac;hp=25a6281ae56ffd6273690af667953334aef07f36;hb=1b75e853af52ab99b831d32b828a38dd446b61b5;hpb=e0850b31ccd5597b564d4385a424bfa6be6f2f3e diff --git a/contrib/git-hooks/commit-msg b/contrib/git-hooks/commit-msg index 25a6281..d28e40b 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() { @@ -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