]> code.delx.au - gnu-emacs/blobdiff - build-aux/git-hooks/commit-msg
Have commit-msg report commit failure
[gnu-emacs] / build-aux / git-hooks / commit-msg
index 9b6179ee6135dbf179bf68183e80770f108d6ed1..6721d53a582363930c05ab30ecd4ad4edd9f2021 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Check the format of GNU Emacs change log entries.
 
-# Copyright 2014 Free Software Foundation, Inc.
+# Copyright 2014-2015 Free Software Foundation, Inc.
 
 # This file is part of GNU Emacs.
 
@@ -121,6 +121,9 @@ exec $awk '
       print "Empty commit message"
       status = 1
     }
+    if (status != 0) {
+      print "Commit aborted; please see the file 'CONTRIBUTE'"
+    }
     exit status
   }
 ' <"$1"