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 #analyze the push
message= message=
[ -n "$repository" ] && message="$repository:" [ -n "$repository" ] && message="$repository: "
[ -n "$author" ] && message="$message $author" [ -n "$author" ] && message="$message$author"
branch= branch=
case "$refname" in case "$refname" in
refs/heads/*) refs/heads/*)