diff --git a/tool/update.sh b/tool/update.sh index 77214dc5..99410c6c 100755 --- a/tool/update.sh +++ b/tool/update.sh @@ -19,7 +19,7 @@ elif [[ "$1" == "dependencies" ]]; then elif [ -d "external/nextcloud-$1" ]; then ( cd "external/nextcloud-$1" - git fetch --tags + git fetch --tags --force latest_tag="$(git tag --sort=v:refname | grep -vi "rc" | grep -vi "alpha" | grep -vi "beta" | tail -n 1)" git reset --hard "$latest_tag" git submodule update