diff --git a/script/most-recent-nightly-tag.sh b/script/most-recent-nightly-tag.sh index 704c6a2653..c96018955d 100755 --- a/script/most-recent-nightly-tag.sh +++ b/script/most-recent-nightly-tag.sh @@ -1,13 +1,10 @@ #!/bin/bash -# Name of the remote repository -remote_name="nightly" - # Prefix for tags to search for tag_prefix="nightly-" # Fetch all tags from the remote repository -git fetch $remote_name --tags > /dev/null +git fetch git@github.com:leanprover/lean4-nightly.git --tags > /dev/null # Get the most recent commit that has a matching tag tag_name=$(git tag --merged HEAD --list "${tag_prefix}*" | sort -rV | head -n 1 | sed "s/^$tag_prefix//")