Skip to content

Deduplicate fetch commands by SHA before parallel processing#52

Open
InlinePizza wants to merge 1 commit intoawslabs:mainfrom
InlinePizza:feat/deduplicate-fetch-commands
Open

Deduplicate fetch commands by SHA before parallel processing#52
InlinePizza wants to merge 1 commit intoawslabs:mainfrom
InlinePizza:feat/deduplicate-fetch-commands

Conversation

@InlinePizza
Copy link
Copy Markdown

@InlinePizza InlinePizza commented Dec 17, 2025

When running git clone -vvv, I noticed that the bundle file for main was being downloaded twice in parallel. Git sends duplicate fetch commands for the same SHA when HEAD and a branch ref point to the same commit. I'm not positive but I think these parallel downloads were clobbering each other's file writes.

Deduplicates commands by SHA before processing to avoid redundant parallel downloads of the same bundle

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When running git clone -vvv, noticed that the bundle for main was being
downloaded twice in parallel. Git sends duplicate fetch commands for the
same SHA when HEAD and a branch ref point to the same commit. These
parallel downloads were clobbering each other's file writes.

Deduplicates commands by SHA before processing to avoid redundant
parallel downloads of the same bundle.
@massi-ang
Copy link
Copy Markdown
Contributor

massi-ang commented Mar 14, 2026

Hi,

Please add an issue with the necessary information to verify the problem and relevant tests that should fail with before the fix and work after this fix.

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