Skip to content

Commit 7956d88

Browse files
committed
avoid that shell expands line of commit message
1 parent c117001 commit 7956d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serverhooks/update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ for sha1 in ${span}; do
7373

7474
# check length of commit description lines
7575
while IFS= read -r line; do
76-
if [ 75 -lt $(echo ${line} | wc -c) ]; then
76+
if [ 75 -lt $(echo "${line}" | wc -c) ]; then
7777
echo "${sha1} bad commit message; header or description lines are too long (max 75 chars per line)"
7878
refuse=true
7979
break

0 commit comments

Comments
 (0)