aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-01-12 20:04:21 +0100
committerMichał Górny <mgorny@gentoo.org>2019-04-09 13:05:55 +0200
commitb8256d6e58bede7c4083fc1142db19741cb276dd (patch)
tree64ad605d0e8470d97210b026ffc65db62270e46c
parentpostrecv-bugs: Support ALLARCHES (diff)
downloadgithooks-b8256d6e58bede7c4083fc1142db19741cb276dd.tar.gz
githooks-b8256d6e58bede7c4083fc1142db19741cb276dd.tar.bz2
githooks-b8256d6e58bede7c4083fc1142db19741cb276dd.zip
postrecv-bugs: Do not add empty arch list to UNCC_BUGS
-rwxr-xr-xlocal/postrecv-bugs4
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}")