mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
vim-patch.sh: Fix replacement which converts #1234 to vim/vim#1234
Noticed in cb7bdf5f
, where the script incorrectly converted `#ifdef` to
`vim/vim#ifdef`.
[skip ci]
This commit is contained in:
parent
cb7bdf5f92
commit
68411dc189
@ -131,7 +131,7 @@ assign_commit_details() {
|
|||||||
vim_commit_url="https://github.com/vim/vim/commit/${vim_commit}"
|
vim_commit_url="https://github.com/vim/vim/commit/${vim_commit}"
|
||||||
vim_message="$(cd "${VIM_SOURCE_DIR}" \
|
vim_message="$(cd "${VIM_SOURCE_DIR}" \
|
||||||
&& git log -1 --pretty='format:%B' "${vim_commit}" \
|
&& git log -1 --pretty='format:%B' "${vim_commit}" \
|
||||||
| sed -e 's/\(#[0-9]*\)/vim\/vim\1/g')"
|
| sed -e 's/\(#[0-9]\{1,\}\)/vim\/vim\1/g')"
|
||||||
if [[ ${munge_commit_line} == "true" ]]; then
|
if [[ ${munge_commit_line} == "true" ]]; then
|
||||||
# Remove first line of commit message.
|
# Remove first line of commit message.
|
||||||
vim_message="$(echo "${vim_message}" | sed -e '1s/^patch /vim-patch:/')"
|
vim_message="$(echo "${vim_message}" | sed -e '1s/^patch /vim-patch:/')"
|
||||||
|
Loading…
Reference in New Issue
Block a user