Investigate why this would happen: git push --set-upstream origin…
- User
Investigate why this would happen: git push --set-upstream origin soph/prevent-empty-sessions [entire] Pushing entire/checkpoints/v1 to checkpoint remote.... [entire] Syncing entire/checkpoints/v1 with remote........... [entire] Warning: couldn't sync entire/checkpoints/v1: failed to rebase local commits onto remote: failed to flatten tip tree: failed to get subtree 36/db97269a69: open /Users/soph/Work/entire/devenv/cli/.git/objects/pack/pack-21b25e80d45f93eda9b0bbc0f46164f8eb5d47eb.pack: no such file or directory [entire] A checkpoint remote is configured in Entire settings (.entire/settings.json or .entire/settings.local.json) but could not be reached. [entire] Checkpoints are saved locally but not synced. Ensure you have access to the checkpoint remote. Enumerating objects: 71, done.
Assistant
Now let me look at the
FlattenTreefunction and the fetch logic.Assistant
Now let me look at the fetch implementation and check if filtered fetches are involved.
Assistant
Let me check
OpenRepositoryand how it caches the repository.Assistant
Now let me check how
git gc --automight interact with this flow, and look at the recent filtered fetches changes.Assistant
Let me check the recent filtered fetches PR for context.
Assistant
Here's what's happening:
Root Cause: go-git / git CLI pack file race condition
The error chain is:
doPushBranch(push_common.go:69) tries to pushentire/checkpoints/v1— fails with non-fast-forward
Assistant
- User
What other options do we have. Note that gc would need to take place at a given point otherwise those promisors would just build up and up. It is important to consider this is our checkpoint data inside of a user's primary dotgit. How to navigate that without potentially triggering gc that could affect the user?
Assistant
Good point. Let me think through this more carefully.
The constraint: we're storing checkpoint data (promisor packs from filtered fetches) inside the user's
.git/. We can't just suppress gc indefinitely — promisor packs accumulate. But triggering gc ourselves risks repacking the user's objects at an unexpected time (slow, locks the repo, could conflict with their work).Let me look at what git offers for more targeted pack management.
Assistant