diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-01-15 20:55:58 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-04-09 13:05:55 +0200 |
commit | c2376b5b3f3748aa350c7e52e20a8ddf4acd6f50 (patch) | |
tree | d0c69622172d349caa9082da010d44d89e44eb79 | |
parent | postrecv-bugs: Do keyword splitting on any non-alnum (diff) | |
download | githooks-c2376b5b3f3748aa350c7e52e20a8ddf4acd6f50.tar.gz githooks-c2376b5b3f3748aa350c7e52e20a8ddf4acd6f50.tar.bz2 githooks-c2376b5b3f3748aa350c7e52e20a8ddf4acd6f50.zip |
postrecv-bugs: Fix --remove-cc with multiple args
-rwxr-xr-x | local/postrecv-bugs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/local/postrecv-bugs b/local/postrecv-bugs index 9adf112..1914c11 100755 --- a/local/postrecv-bugs +++ b/local/postrecv-bugs @@ -106,7 +106,7 @@ $(git show --pretty=fuller --date=iso-local --stat "${commithash}")" fi if [[ ${uncc_this[@]} ]]; then - UNCC_BUGS[${bugno}]+=" ${uncc_this[*]}" + UNCC_BUGS[${bugno}]+=" ${uncc_this[*]/#/--remove-cc }" fi done done < <(git show -q --pretty=format:'%B' "${commithash}") @@ -124,7 +124,7 @@ Additionally, it has been referenced in the following commit(s):${COMMENT_BUGS[$ cmd=( bugz modify -s RESOLVED -r FIXED ) if [[ -n ${UNCC_BUGS[${bug}]} ]]; then - cmd+=( --remove-cc "${UNCC_BUGS[${bug}]}" ) + cmd+=( ${UNCC_BUGS[${bug}]} ) fi cmd+=( -c "${msg}" "${bug}" ) "${cmd[@]}" @@ -137,7 +137,7 @@ for bug in "${!COMMENT_BUGS[@]}"; do cmd=( bugz modify ) if [[ -n ${UNCC_BUGS[${bug}]} ]]; then - cmd+=( --remove-cc "${UNCC_BUGS[${bug}]}" ) + cmd+=( ${UNCC_BUGS[${bug}]} ) fi cmd+=( -c "${msg}" "${bug}" ) "${cmd[@]}" |