Skip to content

Short-circuit update.sh when a pull finds nothing new#15

Merged
AsteroidHunter merged 1 commit into
mainfrom
premain
May 26, 2026
Merged

Short-circuit update.sh when a pull finds nothing new#15
AsteroidHunter merged 1 commit into
mainfrom
premain

Conversation

@AsteroidHunter
Copy link
Copy Markdown
Owner

Follow-up to v0.72.

update.sh previously always ran Build + Shims + Hooks and printed "Expediter updated!" even when git pull found nothing new, which is wasted work and a misleading message.

This tracks NEEDS_REBUILD in the Sync phase: a fast-forward pull that leaves HEAD unchanged sets it to 0, and the script exits early with "Already up to date, nothing to rebuild." A pulled change, a --dev/--no-pull run, or a dirty/diverged checkout still rebuilds. New --force/-f forces the full run for repair cases.

No user-facing behavior change beyond the update flow itself; UI version stays v0.72.

Tracked NEEDS_REBUILD in the Sync phase: a fast-forward pull that leaves HEAD
unchanged sets it to 0, and the script then exits before Build/Shims/Hooks with
"Already up to date, nothing to rebuild" instead of redoing identical work and
falsely reporting "updated". --dev and a dirty/diverged checkout still rebuild
(NEEDS_REBUILD stays 1), and a new --force/-f flag forces the full run for
repair cases.
@AsteroidHunter AsteroidHunter merged commit 476fe0b into main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant