mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
build(vim-patch.sh): dereference annotated tags when listing (#25042)
This commit is contained in:
parent
3afbf4745b
commit
acb868bf84
@ -565,10 +565,8 @@ _set_tokens_and_tags() {
|
|||||||
|
|
||||||
# Create an associative array mapping Vim commits to tags.
|
# Create an associative array mapping Vim commits to tags.
|
||||||
eval "vim_commit_tags=(
|
eval "vim_commit_tags=(
|
||||||
$(git -C "${VIM_SOURCE_DIR}" for-each-ref refs/tags \
|
$(git -C "${VIM_SOURCE_DIR}" show-ref --tags --dereference \
|
||||||
--format '[%(objectname)]=%(refname:strip=2)' \
|
| sed -nEe 's/^([0-9a-f]+) refs\/tags\/(v[0-9.]+)(\^\{\})?$/\1 \2/p')
|
||||||
--sort='-*authordate' \
|
|
||||||
--shell)
|
|
||||||
)"
|
)"
|
||||||
# Exit in case of errors from the above eval (empty vim_commit_tags).
|
# Exit in case of errors from the above eval (empty vim_commit_tags).
|
||||||
if ! (( "${#vim_commit_tags[@]}" )); then
|
if ! (( "${#vim_commit_tags[@]}" )); then
|
||||||
|
Loading…
Reference in New Issue
Block a user