Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/setup/hourly-git-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ NODE
maybe_restore_if_runtime_only "cron/jobs.json"
maybe_restore_if_runtime_only "crons.json"

# Skip alphaclaw git-sync if there are no changes; avoid empty commits.
if git diff --quiet && git diff --cached --quiet 2>/dev/null; then
exit 0
fi

resolve_alphaclaw_cmd() {
if command -v alphaclaw >/dev/null 2>&1; then
command -v alphaclaw
Expand Down