From 6a16e595a96dc174d4c4167ff2ad0d1ed007cfa0 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 23 Nov 2025 20:15:34 -0500 Subject: [PATCH] Skip update checks if in detached state. Lesson learned from 2025 tag. --- .includes/update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.includes/update.sh b/.includes/update.sh index 33fb5d4..7a106bb 100644 --- a/.includes/update.sh +++ b/.includes/update.sh @@ -26,6 +26,10 @@ 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="$(git ls-remote --get-url)" if [[ "$url" =~ ^ssh://|git@|gitea@ ]] || [[ -z "$url" ]]; then return