Repository navigation
Prevent :@@= loads from (falsely) indicating to the server they have missing commit ancestry - #260
Merged
Conversation
nishu-builder
added this pull request to stack #261
September 18, 2026 10:53
:@@= loads from (falsely) indicating to the server they have missing commit ancestry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem:
.git/shallow.Git announces the local shallow boundaries even when those commits aren’t part of what’s being pushed. Our server rejects the request as soon as it sees shallow C. It doesn’t first establish whether C is relevant to this upload.
This PR keeps the cleanup on the client. It shallow-fetches into a temporary bare repository, copies only the snapshot’s trees and blobs into the client’s object store, then deletes the temporary repository, including the fetched commit and
.git/shallow. The server continues rejecting shallow pushes; it does not strip anything from the request.A ref under
refs/caos/locator-trees/<commit>remembers the tree hash and keeps the snapshot available for reuse.import_sourcecontinues to import full commit history.