Skip to content

Refresh all refs in external source mirrors#277

Merged
loning merged 1 commit into
ChronoAIProject:devfrom
eanz17:fix/mirror-fetch-all-refs
Jul 22, 2026
Merged

Refresh all refs in external source mirrors#277
loning merged 1 commit into
ChronoAIProject:devfrom
eanz17:fix/mirror-fetch-all-refs

Conversation

@eanz17

@eanz17 eanz17 commented Jul 16, 2026

Copy link
Copy Markdown

Problem

An existing mirror was refreshed with git fetch <url>, which bypassed the mirror remote's +refs/*:refs/* refspec. Commits added later on non-default branches remained unavailable, so locked external source SHAs failed with not a tree object.

Change

Refresh the configured origin remote so the mirror refspec fetches every ref. Add a regression test that creates the mirror, advances a non-default branch, returns the source HEAD to the default branch, and locks the new feature-branch commit.

Verification

  • cargo test -p fkst-framework --test deps_cli (19 passed)
  • FKST_RUNTIME_ROOT=/tmp/fkst-substrate-mirror-fetch-self-test ./target/debug/fkst-framework --self-test

⟦AI:FKST⟧

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/fkst-framework/src/manifest_external.rs 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@loning
loning merged commit e708db0 into ChronoAIProject:dev Jul 22, 2026
3 checks passed
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.

2 participants