You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/04/12 22:34:04 UTC

mesos git commit: Fixed the commit message hook to use `echo -n` instead.

Repository: mesos
Updated Branches:
  refs/heads/master b36596b9d -> 25a4ecb5c


Fixed the commit message hook to use `echo -n` instead.

Review: https://reviews.apache.org/r/45985/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/25a4ecb5
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/25a4ecb5
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/25a4ecb5

Branch: refs/heads/master
Commit: 25a4ecb5ca90c57131276a74b7f61696f66a7174
Parents: b36596b
Author: Michael Park <mp...@apache.org>
Authored: Tue Apr 12 13:33:57 2016 -0700
Committer: Michael Park <mp...@apache.org>
Committed: Tue Apr 12 13:33:57 2016 -0700

----------------------------------------------------------------------
 support/hooks/commit-msg | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/25a4ecb5/support/hooks/commit-msg
----------------------------------------------------------------------
diff --git a/support/hooks/commit-msg b/support/hooks/commit-msg
index 54d6f56..755309e 100755
--- a/support/hooks/commit-msg
+++ b/support/hooks/commit-msg
@@ -22,8 +22,8 @@ do
     # we also skip everything once this line is observed.
     if [ "$LINE" = "# ------------------------ >8 ------------------------" ]; then break; fi
     if [ "$(echo -n "$LINE" | head -c 1)" = "#" ]; then continue; fi
-    LENGTH=$(echo "$LINE" | wc -c)
-    if [ "$LENGTH" -gt "73" ]; then
+    LENGTH=$(echo -n "$LINE" | wc -c)
+    if [ "$LENGTH" -gt "72" ]; then
         echo >&2 "Error: No line in the commit message summary may exceed 72 characters."
         exit 1
     fi