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/11 20:12:33 UTC

mesos git commit: Fixed line commit message length check.

Repository: mesos
Updated Branches:
  refs/heads/master e5f5e92a9 -> be73cb48f


Fixed line commit message length check.

While reading the lines of the commit message we currently mangle
contained backslashes. This has the effect that we cannot e.g.,
continue lines in code samples.

This patch preserves existing backslashes when reading the commit
message.

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


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

Branch: refs/heads/master
Commit: be73cb48f38ab7abe2d4656a84dd400334c260c1
Parents: e5f5e92
Author: Benjamin Bannier <be...@mesosphere.io>
Authored: Mon Apr 11 11:12:05 2016 -0700
Committer: Michael Park <mp...@apache.org>
Committed: Mon Apr 11 11:12:20 2016 -0700

----------------------------------------------------------------------
 support/hooks/commit-msg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/be73cb48/support/hooks/commit-msg
----------------------------------------------------------------------
diff --git a/support/hooks/commit-msg b/support/hooks/commit-msg
index 0e3a4e8..54d6f56 100755
--- a/support/hooks/commit-msg
+++ b/support/hooks/commit-msg
@@ -15,7 +15,7 @@ FIRST_LINE=$(head -n 1 "$1")
 LAST_CHAR=$(echo -n "$FIRST_LINE" | tail -c 1)
 FIRST_CHAR=$(echo -n "$FIRST_LINE" | head -c 1)
 
-while read LINE
+while read -r LINE
 do
     # In verbose mode, the diff of the commit is included in the commit message.
     # Since git looks for the following line and skips everything after it,