From d7a2a384cf5d0d533d498c0e9cceec8346c97839 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 15 Mar 2026 17:18:56 +0000 Subject: [PATCH] fix: add git safe.directory for openclaw dotfiles install --- dot_claude/executable_openclaw-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dot_claude/executable_openclaw-install.sh b/dot_claude/executable_openclaw-install.sh index d204d05..c7a0f7e 100644 --- a/dot_claude/executable_openclaw-install.sh +++ b/dot_claude/executable_openclaw-install.sh @@ -34,6 +34,7 @@ log "OPENCLAW_HOME=$OPENCLAW_HOME" log "DOTFILES_DIR=$DOTFILES_DIR" # Clone or pull +git config --global --add safe.directory "$DOTFILES_DIR" 2>/dev/null || true if [ -d "$DOTFILES_DIR/.git" ]; then log "Pulling latest dotfiles..." git -C "$DOTFILES_DIR" pull --ff-only 2>/dev/null || git -C "$DOTFILES_DIR" pull --rebase || true