make sure update checks are skipped if on a tag instead of a branch.

This commit is contained in:
Storm Dragon
2025-11-23 20:19:56 -05:00
parent be63211e6b
commit be86f1e916

View File

@@ -290,6 +290,10 @@ check_update() {
if ! [[ -d ".git" ]]; then
return
fi
# Check if we're in a detached HEAD state
if ! git symbolic-ref -q HEAD &> /dev/null; then
return
fi
local url
url="$(git ls-remote --get-url)"
if [[ "$url" =~ ^ssh://|git@|gitea@ ]] || [[ -z "$url" ]]; then