Skip to content

Fetch origin before stck push#20

Merged
brdv merged 1 commit intomainfrom
push-fetch-before-operations
Feb 11, 2026
Merged

Fetch origin before stck push#20
brdv merged 1 commit intomainfrom
push-fetch-before-operations

Conversation

@brdv
Copy link
Owner

@brdv brdv commented Feb 11, 2026

Summary

Ensure stck push refreshes remote refs before planning and execution.

This reduces stale-ref risk and aligns push behavior with status/sync freshness expectations.

Changelist

  • src/cli.rs
    • run_push now runs git fetch origin before loading/reusing push state.
    • Push exits early with actionable error if fetch fails.
  • tests/cli_skeleton.rs
    • Added regression test push_shows_fetch_failure_remediation.

Validation

  • cargo fmt --all
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features

Base automatically changed from sync-old-base-fallback to main February 11, 2026 11:26
@brdv brdv force-pushed the push-fetch-before-operations branch from b7ff71d to 4ade1a1 Compare February 11, 2026 11:27
@brdv brdv merged commit 9cb36b8 into main Feb 11, 2026
1 check passed
@brdv brdv deleted the push-fetch-before-operations branch February 11, 2026 11:28
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