From 65e368d83cc79c849c6a334665a877952f7ce59e Mon Sep 17 00:00:00 2001 From: openclaw-314 Date: Tue, 14 Jul 2026 20:50:09 +0800 Subject: [PATCH] auto: sync OpenClaw config 2026-07-14 20:50 --- auto-commit-config.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auto-commit-config.sh b/auto-commit-config.sh index 3ab245c..c0d89a1 100755 --- a/auto-commit-config.sh +++ b/auto-commit-config.sh @@ -6,7 +6,9 @@ REPO_DIR="/home/yangxuan/.openclaw" cd "$REPO_DIR" || exit 1 # 检查是否有变更 -if [ -z "$(git status --porcelain 2>/dev/null)" ]; then +# 检查是否有文件变更(忽略子模块 workspace) +CHANGES=$(git status --porcelain 2>/dev/null | grep -v '^[? ]* workspace' | head -1) +if [ -z "$CHANGES" ]; then # 无变更,静默退出 exit 0 fi