Skip to content

Commit b5453fd

Browse files
committed
fix: latest tag checkout
1 parent ceed8aa commit b5453fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

update.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ function clean() {
1212
function updateRepository() {
1313
printf "Updating repository...\n"
1414
git reset --hard
15-
git pull origin master
16-
git fetch --tags -f
17-
tag="$(git describe --tags --abbrev=0)"
15+
git fetch --tags --force
16+
tag="$(git tag --sort=-v:refname | head -n 1)"
1817
git checkout tags/"$tag"
1918
}
2019

0 commit comments

Comments
 (0)