mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch.sh: Ignore “git describe” failures in list_vim_patches
It's acceptable for “git describe --tags --exact-match …” to fail, since all runtime updates commits are untagged. All that matters is that we get a tag when one exists. Therefore, ignore the failure status of the git describe call, relying on the captured output instead.
This commit is contained in:
parent
39af303600
commit
de570a0b84
@ -256,7 +256,8 @@ list_vim_patches() {
|
||||
for vim_commit in ${vim_commits}; do
|
||||
local is_missing
|
||||
local vim_tag
|
||||
vim_tag="$(cd "${VIM_SOURCE_DIR}" && git describe --tags --exact-match "${vim_commit}" 2>/dev/null)"
|
||||
# This fails for untagged commits (e.g., runtime file updates) so mask the return status
|
||||
vim_tag="$(cd "${VIM_SOURCE_DIR}" && git describe --tags --exact-match "${vim_commit}" 2>/dev/null)" || true
|
||||
if [[ -n "${vim_tag}" ]]; then
|
||||
local patch_number="${vim_tag:5}" # Remove prefix like "v7.4."
|
||||
# Tagged Vim patch, check version.c:
|
||||
|
Loading…
Reference in New Issue
Block a user