Skip to content

Commit 58b48ea

Browse files
committed
Fetch tags so the error condition later works correctly
Should fix the issue when there were only runtime file updates Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 7926dbe commit 58b48ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/update-repo.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ if [ ! -d vim/src ]; then
2424
fi
2525
git submodule update
2626

27+
# get the latest tags
28+
git fetch --tags
29+
2730
# get the last released commit id from this repo
2831
curl -s https://api.github.com/repos/vim/vim-win32-installer/releases/latest -o latest.json
2932
vimoldver=$(cat latest.json | python -c 'import sys; from json import loads as l; print(l(sys.stdin.read())["body"])' | sed -n -e '/.*(https:\/\/github\.com\/vim\/vim\/commit\/\([0-9a-f]*\)).*/{s//\1/;p;q}')

0 commit comments

Comments
 (0)