diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-01-12 20:04:21 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-04-09 13:05:55 +0200 |
commit | b8256d6e58bede7c4083fc1142db19741cb276dd (patch) | |
tree | 64ad605d0e8470d97210b026ffc65db62270e46c | |
parent | postrecv-bugs: Support ALLARCHES (diff) | |
download | githooks-b8256d6e58bede7c4083fc1142db19741cb276dd.tar.gz githooks-b8256d6e58bede7c4083fc1142db19741cb276dd.tar.bz2 githooks-b8256d6e58bede7c4083fc1142db19741cb276dd.zip |
postrecv-bugs: Do not add empty arch list to UNCC_BUGS
-rwxr-xr-x | local/postrecv-bugs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/local/postrecv-bugs b/local/postrecv-bugs index bdd89f7..d7ebbb9 100755 --- a/local/postrecv-bugs +++ b/local/postrecv-bugs @@ -105,7 +105,9 @@ $(git show --pretty=fuller --date=iso-local --stat "${commithash}")" COMMENT_BUGS[${bugno}]+=${newmsg} fi - UNCC_BUGS[${bugno}]+=" ${uncc_this[*]}" + if [[ ${uncc_this[@]} ]]; then + UNCC_BUGS[${bugno}]+=" ${uncc_this[*]}" + fi done done < <(git show -q --pretty=format:'%B' "${commithash}") done < <(git rev-list "${oldrev}..${newrev}") |