Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions cmd/entire/cli/strategy/push_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@ func fetchAndMergeSessionsCommon(ctx context.Context, target, branchName string)
fetchedRefName = plumbing.NewRemoteReferenceName(target, branchName)
}

// Use git CLI for fetch (go-git's fetch can be tricky with auth)
fetchCmd := exec.CommandContext(ctx, "git", "fetch", target, refSpec)
// Use git CLI for fetch (go-git's fetch can be tricky with auth).
// Use --filter=blob:none for a partial fetch that downloads only commits
// and trees, skipping blobs. The merge only needs the tree structure to
// combine entries; blobs are already local or fetched on demand.
fetchCmd := exec.CommandContext(ctx, "git", "fetch", "--filter=blob:none", target, refSpec)
fetchCmd.Stdin = nil
if output, err := fetchCmd.CombinedOutput(); err != nil {
return fmt.Errorf("fetch failed: %s", output)
Comment on lines +161 to 168
Expand Down
Loading