aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-04-04 06:39:56 -0400
committerGitHub <noreply@github.com>2020-04-04 06:39:56 -0400
commit496faf2271e83c6877ca381c537ecf8e19d0b9ad (patch)
tree7160b870633321d4db1e3fbb835150c202569116 /scripts/vim-patch.sh
parent6ca7ebb34685a2be497dd5bb00defd5976af7b27 (diff)
parentdc7f59e04bf711b296fe0e1f0ce2159d0e97c877 (diff)
downloadrneovim-496faf2271e83c6877ca381c537ecf8e19d0b9ad.tar.gz
rneovim-496faf2271e83c6877ca381c537ecf8e19d0b9ad.tar.bz2
rneovim-496faf2271e83c6877ca381c537ecf8e19d0b9ad.zip
Merge pull request #12074 from jamessan/vim-patch-review
vim-patch.sh: Fix creation of commit list for PR review
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index f9726e8a87..e50eb307e5 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -670,9 +670,11 @@ review_pr() {
echo
echo "Downloading data for pull request #${pr}."
- local pr_commit_urls=(
- "$(curl -Ssf "https://api.github.com/repos/neovim/neovim/pulls/${pr}/commits" \
- | jq -r '.[].html_url')")
+ local -a pr_commit_urls
+ while IFS= read -r pr_commit_url; do
+ pr_commit_urls+=("$pr_commit_url")
+ done < <(curl -Ssf "https://api.github.com/repos/neovim/neovim/pulls/${pr}/commits" \
+ | jq -r '.[].html_url')
echo "Found ${#pr_commit_urls[@]} commit(s)."