Skip to content

Commit 3b63bb4

Browse files
committed
update-repo: Check if the latest vimtag already exists
Otherwise, it will try to tag an existing version and error out. Signed-off-by: Christian Brabandt <[email protected]>
1 parent 7523343 commit 3b63bb4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/update-repo.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ if git diff --exit-code > /dev/null; then
5858
exit 0
5959
fi
6060

61+
# Check if the latest tag already exists (e.g. only runtime file updates)
62+
if git rev-parse -q --verify "$vimver" >/dev/null; then
63+
echo "No new Vim tag, exiting"
64+
exit 0
65+
fi
66+
6167
# Commit the change and push it
6268
# replace newline by \n
6369
echo "$vimlog_md" | sed -e ':a;N;$!ba;s/\n/\\n/g' > gitlog.txt

0 commit comments

Comments
 (0)