Left-trimmed the message when no repository is known

This commit is contained in:
Pierre Pronchery 2014-09-14 21:48:10 +02:00
parent 600e82b0c4
commit bcbb1a6d6d

View File

@ -96,8 +96,8 @@ _hook_update()
#analyze the push
message=
[ -n "$repository" ] && message="$repository:"
[ -n "$author" ] && message="$message $author"
[ -n "$repository" ] && message="$repository: "
[ -n "$author" ] && message="$message$author"
branch=
case "$refname" in
refs/heads/*)