mirror of
https://github.com/obra/superpowers.git
synced 2026-04-21 08:59:04 +08:00
The initialization script was incorrectly warning about upstream updates when the local repository was ahead of upstream. This happened because the logic didn't distinguish between three states: - Local behind: LOCAL=BASE, REMOTE≠BASE → should update or warn - Local ahead: LOCAL≠BASE, REMOTE=BASE → no warning needed - Diverged: LOCAL≠BASE, REMOTE≠BASE → should warn Changed the else clause to only set SKILLS_BEHIND when REMOTE≠BASE, which correctly handles all three scenarios. Fixes the issue reported in #8 where users with local commits ahead of upstream were seeing spurious "new skills available" warnings.