From c1b7dcacb78b19198cbfb05c75a8f38dfcbdd7f4 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Tue, 14 Jul 2026 10:58:37 -0400 Subject: [PATCH] Fix git safe.directory error on upgrade When running as root on an existing install, git refuses to operate on a repo owned by a different user. Mark the install dir as safe before pulling. Co-Authored-By: Claude Sonnet 4.6 --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 3228913..f4211c4 100755 --- a/install.sh +++ b/install.sh @@ -66,6 +66,7 @@ ok "git $(git --version | awk '{print $3}')" # ── Clone / update ──────────────────────────────────────────────────────────── if [ -d "$INSTALL_DIR/.git" ]; then info "Updating existing installation at $INSTALL_DIR..." + git config --global --add safe.directory "$INSTALL_DIR" 2>/dev/null || true git -C "$INSTALL_DIR" pull --ff-only else info "Cloning to $INSTALL_DIR..."