| 1237 | SizeState: "unknown", |
| 1238 | SizeBytes: 0, |
| 1239 | }, typ, true |
| 1240 | } |
| 1241 | |
| 1242 | func (s *Store) batchResolveSizes(ctx context.Context, repo model.RepoConfig, nodes []model.BaseNode, oids []string, index map[string][]int) error { |
| 1243 | if len(oids) == 0 { |
| 1244 | return nil |
| 1245 | } |
| 1246 | cmd := exec.CommandContext(ctx, "git", "cat-file", "--batch-check", "--buffer") |
| 1247 | configureCancelableCommand(cmd) |
| 1248 | // GIT_NO_LAZY_FETCH prevents batch-check from fetching blob metadata from |
| 1249 | // the promisor remote on blobless clones. Without it, every blob OID |
| 1250 | // triggers a network round-trip, turning a millisecond operation into |
| 1251 | // minutes. Blobs reported as "missing" keep SizeState="unknown" and get |