From d8a6b4c56d1454aeae64b146bdb73d14b62340a9 Mon Sep 17 00:00:00 2001 From: mboehmlaender Date: Thu, 12 Mar 2026 08:08:05 +0000 Subject: [PATCH] fix: fetch all remote branches before checkout on reinstall Single-branch clones only track one branch. Reset the remote refspec to '*' before fetching so any target branch can be checked out. Co-Authored-By: Claude Sonnet 4.6 --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 393471e..52cc445 100755 --- a/install.sh +++ b/install.sh @@ -431,6 +431,7 @@ if [[ -d "$INSTALL_DIR/.git" ]]; then # safe.directory nötig wenn das Verzeichnis einem anderen User gehört # (z.B. ripster-Serviceuser nach erstem Install) git config --global --add safe.directory "$INSTALL_DIR" 2>/dev/null || true + git -C "$INSTALL_DIR" remote set-branches origin '*' git -C "$INSTALL_DIR" fetch --quiet origin git -C "$INSTALL_DIR" checkout --quiet -B "$GIT_BRANCH" "origin/$GIT_BRANCH" git -C "$INSTALL_DIR" reset --hard "origin/$GIT_BRANCH"