aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-02-06 15:58:33 -0500
committerJames McCoy <jamessan@jamessan.com>2017-02-06 15:58:33 -0500
commit1df492dd3a5d56e073bc5373c238c18f2bc99446 (patch)
tree08456d56135d7e2b5132fa10e72ab3466fb39e30 /scripts/vim-patch.sh
parent24ade150f9ae0cd2ce137b02530549c66a06b873 (diff)
downloadrneovim-1df492dd3a5d56e073bc5373c238c18f2bc99446.tar.gz
rneovim-1df492dd3a5d56e073bc5373c238c18f2bc99446.tar.bz2
rneovim-1df492dd3a5d56e073bc5373c238c18f2bc99446.zip
vim-patch: Use get_vim_patch to retrieve patch for review
This ensures the downloaded Vim patch is preprocessed so unused material isn't presented to the reviewer. [ci skip]
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index 88fb3cae04..ad0317aa4b 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -379,8 +379,6 @@ review_commit() {
assign_commit_details "${vim_version}"
- local vim_patch_url="${vim_commit_url}.patch"
-
local expected_commit_message
expected_commit_message="$(commit_message)"
local message_length
@@ -403,8 +401,7 @@ review_commit() {
echo "✔ Saved pull request diff to '${NVIM_SOURCE_DIR}/n${patch_file}'."
CREATED_FILES+=("${NVIM_SOURCE_DIR}/n${patch_file}")
- curl -Ssfo "${NVIM_SOURCE_DIR}/${patch_file}" "${vim_patch_url}"
- echo "✔ Saved Vim diff to '${NVIM_SOURCE_DIR}/${patch_file}'."
+ get_vim_patch "${vim_version}"
CREATED_FILES+=("${NVIM_SOURCE_DIR}/${patch_file}")
echo