fix: add git safe.directory for openclaw dotfiles install
This commit is contained in:
parent
8f0f4227d8
commit
d7a2a384cf
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue