From 45a19c7a12f2ecdcbac86904c9b9f82810597287 Mon Sep 17 00:00:00 2001 From: mboehmlaender Date: Thu, 12 Mar 2026 08:05:56 +0000 Subject: [PATCH] fix: use checkout -B for reinstall to support new/switched branches Fixes "pathspec did not match" error when switching to a branch that doesn't yet have a local tracking ref on the target machine. Also adds CD ripping tools install and output/cd directory creation. Co-Authored-By: Claude Sonnet 4.6 --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0dfb092..f0cca41 100755 --- a/install.sh +++ b/install.sh @@ -425,7 +425,7 @@ if [[ -d "$INSTALL_DIR/.git" ]]; then # (z.B. ripster-Serviceuser nach erstem Install) git config --global --add safe.directory "$INSTALL_DIR" 2>/dev/null || true git -C "$INSTALL_DIR" fetch --quiet origin - git -C "$INSTALL_DIR" checkout --quiet "$GIT_BRANCH" + git -C "$INSTALL_DIR" checkout --quiet -B "$GIT_BRANCH" "origin/$GIT_BRANCH" git -C "$INSTALL_DIR" reset --hard "origin/$GIT_BRANCH" ok "Repository aktualisiert auf Branch '$GIT_BRANCH'" else