summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-02 00:04:48 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-19 00:40:27 +0200
commit7134ae0e97f9737a51c222de49be9a8d6d34401a (patch)
treeb77a0b5bd28e1a4bcc3cb8fc8a228c8c448cd2f2
parent31fa8a163e4b419f10326cc1dd21285cce7ce6af (diff)
downloadndim-git-utils-7134ae0e97f9737a51c222de49be9a8d6d34401a.tar.gz
ndim-git-utils-7134ae0e97f9737a51c222de49be9a8d6d34401a.tar.xz
ndim-git-utils-7134ae0e97f9737a51c222de49be9a8d6d34401a.zip
Error message tuning
-rwxr-xr-xgit-check-commit-msg/git-check-commit-msg3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-check-commit-msg/git-check-commit-msg b/git-check-commit-msg/git-check-commit-msg
index 4ef9e9a..060fced 100755
--- a/git-check-commit-msg/git-check-commit-msg
+++ b/git-check-commit-msg/git-check-commit-msg
@@ -1,8 +1,9 @@
#!/bin/sh
msgfile="$1"
+
test -s "$msgfile" || {
- echo >&2 "Commit message must not be empty"
+ echo >&2 "Commit message must NOT be empty."
exit 1
}