-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Problem
src/gateway/sync.ts syncs config, workspace, and skills to R2, but not /root/.gitconfig. Similarly, start-openclaw.sh restores config, workspace, and skills from R2 but not git config.
If you configure git identity (git config --global user.name/email) inside the container, it's lost on restart.
Suggested fix
Sync — add to the sync script after the skills rsync:
test -f /root/.gitconfig && cp /root/.gitconfig ${R2_MOUNT_PATH}/gitconfig 2>/dev/null || trueRestore — add to start-openclaw.sh after the skills restore:
if [ "$DO_RESTORE" = true ] && [ -f "$BACKUP_DIR/gitconfig" ]; then
cp -f "$BACKUP_DIR/gitconfig" /root/.gitconfig
fiTesting
Deployed and verified — git config persists across container restarts via R2.
Co-authored with Claude Code (Opus 4.6).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels