aboutsummaryrefslogtreecommitdiffstats
path: root/git-tools/hooks
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-03-14 13:58:17 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-03-14 13:58:17 +0100
commit4dd7b4cb8f5136459d361aab807f511fb83aeaa5 (patch)
treeaf8ce6fb6d4f61491c871f0fc14ae1f75874f7af /git-tools/hooks
parent4d231112b67ab714c96605233bee2ba67f56a2eb (diff)
parent94e09ac041ac7bc9fd52c8bd1d13d1a91da1da6f (diff)
downloadforums-4dd7b4cb8f5136459d361aab807f511fb83aeaa5.tar
forums-4dd7b4cb8f5136459d361aab807f511fb83aeaa5.tar.gz
forums-4dd7b4cb8f5136459d361aab807f511fb83aeaa5.tar.bz2
forums-4dd7b4cb8f5136459d361aab807f511fb83aeaa5.tar.xz
forums-4dd7b4cb8f5136459d361aab807f511fb83aeaa5.zip
Merge branch 'ticket/p/10078' into develop-olympus
* ticket/p/10078: [ticket/10078] Avoid \n in strings given to echo for portability.
Diffstat (limited to 'git-tools/hooks')
-rwxr-xr-xgit-tools/hooks/commit-msg5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-tools/hooks/commit-msg b/git-tools/hooks/commit-msg
index ad4d69a9da..9114cd368a 100755
--- a/git-tools/hooks/commit-msg
+++ b/git-tools/hooks/commit-msg
@@ -70,8 +70,9 @@ msg=$(grep -nE '.{81,}' "$1");
if [ $? -eq 0 ]
then
- echo "The following lines are greater than 80 characters long:\n" >&2;
- echo $msg >&2;
+ echo "The following lines are greater than 80 characters long:" >&2;
+ echo >&2
+ echo "$msg" >&2;
quit $ERR_LENGTH;
fi