summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-11 10:38:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-13 10:24:26 +0100
commit6cd9bc8aa40791bd0cd5315134084b2319fa2a15 (patch)
tree19802ef238095b8a20174ba4bb2b7196929f406e /.git-hooks
parent74f9830db4f515856adefcbc936094ceca1b78fa (diff)
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 <https://gerrit.libreoffice.org/67672> "Merge in Flatpak improvements". Change-Id: I922b5be87549793466f99db8b12be6081e683292 Reviewed-on: https://gerrit.libreoffice.org/67674 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to '.git-hooks')
-rwxr-xr-x.git-hooks/commit-msg6
1 files changed, 0 insertions, 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 '#<something>' (possibly accidental commit,
# such as starting the message with '#ifdef', git commits start with '#<whitespace>'.