After a parent PR merges on origin, running gx sync on a downstream branch without first pulling the parent locally rebases onto the stale local ref and reports success — the merged changes never make it into the branch.
Reproduce:
- Stack B on A, merge A's PR into dev on GitHub.
- Without running git fetch or git pull, switch to B and run gx sync.
- Output: OK Rebased B / OK Pushed B / Stack sync complete.
- git log shows the merged parent commits are absent from B.
Expected:
Either auto-fetch the parent's upstream (might be too opinionated), or abort with a warning when git rev-list --count ..origin/ > 0.
Actual:
Silent rebase onto stale tip with a success message.
After a parent PR merges on origin, running gx sync on a downstream branch without first pulling the parent locally rebases onto the stale local ref and reports success — the merged changes never make it into the branch.
Reproduce:
Expected:
Either auto-fetch the parent's upstream (might be too opinionated), or abort with a warning when git rev-list --count ..origin/ > 0.
Actual:
Silent rebase onto stale tip with a success message.