summaryrefslogtreecommitdiff
path: root/tests/opencode/test-plugin-loading.sh
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2025-10-12 21:16:54 -0700
committerJesse Vincent <jesse@fsck.com>2025-10-12 21:16:54 -0700
commit927512f1ab5098d5770a55fc5e1b52000f4652cd (patch)
treee8343cb3fbdc39d56526576eb569c28f81c89e3d /tests/opencode/test-plugin-loading.sh
parent998a3d545f89c3562fc9122dcec5bb809156cd6c (diff)
Fix false warning when local skills repo is ahead of upstream
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.
Diffstat (limited to 'tests/opencode/test-plugin-loading.sh')
0 files changed, 0 insertions, 0 deletions