gitweb: Move git_get_last_activity subroutine earlier
[gitweb.git] / templates / hooks--commit-msg
index 23617f390611f5221149ec1b9bbc5d72092fd04d..0b906caa98f3d4deced75d196d969d7216d31961 100644 (file)
@@ -11,4 +11,8 @@
 # This example catches duplicate Signed-off-by lines.
 
 test "" = "$(grep '^Signed-off-by: ' "$1" |
-        sort | uniq -c | sed -e '/^[   ]*1[    ]/d')"
+        sort | uniq -c | sed -e '/^[   ]*1[    ]/d')" || {
+       echo >&2 Duplicate Signed-off-by lines.
+       exit 1
+}
+