From 6cd9bc8aa40791bd0cd5315134084b2319fa2a15 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 11 Feb 2019 10:38:04 +0100 Subject: [PATCH] Remove unhelpful "Check for whitespace in front of *'s" from .git-hooks It was added with 60f200caa44ddd42830eec3a98364facba71e6e1 "git-hooks: Copy them from the build repo", but I don't see its purpose, and it caused trouble for me now when trying to commit "Merge in Flatpak improvements". Change-Id: I922b5be87549793466f99db8b12be6081e683292 Reviewed-on: https://gerrit.libreoffice.org/67674 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- .git-hooks/commit-msg | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.git-hooks/commit-msg b/.git-hooks/commit-msg index fb08d10be330..cf52ce307dda 100755 --- a/.git-hooks/commit-msg +++ b/.git-hooks/commit-msg @@ -66,12 +66,6 @@ if [ -n "`head -n 1 $1 | grep '^[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}.*<.*@.*>'`" ] ; abort "$1" "The commit message looks like ChangeLog, please use the git form." fi -# Check for whitespace in front of *'s - -if [ -n "`sed '/^#/,$d' $1 | grep '^[[:space:]]\+\*.*:'`" -a -z "`grep '^\*' $1`" ] ; then - abort "$1" "Please don't use whitespace in front of '* file: Description.' entries." -fi - # Check that lines do not start with '#' (possibly accidental commit, # such as starting the message with '#ifdef', git commits start with '#'.