aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-09-04 08:46:46 -0400
committerJames McCoy <jamessan@jamessan.com>2020-09-04 08:46:46 -0400
commitb163a8992583926de63a0eccc5678705475677e4 (patch)
tree3c5bdd7502487942dae7d70a4307eb60392509fd
parent5707982bd3d42d32c2d0bb38d9951769ed538e8a (diff)
downloadrneovim-b163a8992583926de63a0eccc5678705475677e4.tar.gz
rneovim-b163a8992583926de63a0eccc5678705475677e4.tar.bz2
rneovim-b163a8992583926de63a0eccc5678705475677e4.zip
vim-patch.sh: Fix PR subject with multiple patches
-rwxr-xr-xscripts/vim-patch.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index 9c4349abca..03f52bd162 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -346,7 +346,8 @@ submit_pr() {
local patches
# Extract just the "vim-patch:X.Y.ZZZZ" or "vim-patch:sha" portion of each log
patches=("$(git log --grep=vim-patch --reverse --format='%s' "${git_remote}"/master..HEAD | sed 's/: .*//')")
- patches=("${patches[@]//vim-patch:}") # Remove 'vim-patch:' prefix for each item in array.
+ # shellcheck disable=SC2206
+ patches=(${patches[@]//vim-patch:}) # Remove 'vim-patch:' prefix for each item in array.
local pr_title="${patches[*]}" # Create space-separated string from array.
pr_title="${pr_title// /,}" # Replace spaces with commas.