An agentic skills framework & software development methodology that works.
Fix false warning when local skills repo is ahead of upstream
Jesse Vincent927512f1ab50
diff --git a/lib/initialize-skills.sh b/lib/initialize-skills.shindex 3fb3fd831..838671bff 100755--- a/lib/initialize-skills.sh+++ b/lib/initialize-skills.sh@@ -27,7 +27,7 @@ if [ -d "$SKILLS_DIR/.git" ]; thenif [ -n "$LOCAL" ] && [ -n "$REMOTE" ] && [ "$LOCAL" != "$REMOTE" ]; then# Check if we can fast-forward (local is ancestor of remote)if [ "$LOCAL" = "$BASE" ]; then- # Fast-forward merge is possible+ # Fast-forward merge is possible - local is behindecho "Updating skills to latest version..."if git merge --ff-only @{u} 2>&1; thenecho "✓ Skills updated successfully"@@ -35,10 +35,11 @@ if [ -d "$SKILLS_DIR/.git" ]; thenelseecho "Failed to update skills"fi- else- # Can't fast-forward - will be reported at the end+ elif [ "$REMOTE" != "$BASE" ]; then+ # Remote has changes (local is behind or diverged)echo "SKILLS_BEHIND=true"fi+ # If REMOTE = BASE, local is ahead - no action neededfiexit 0