MINOR: Fix Gradle when git refs are packed#14590
Closed
nicktelford wants to merge 1 commit intoapache:trunkfrom
Closed
MINOR: Fix Gradle when git refs are packed#14590nicktelford wants to merge 1 commit intoapache:trunkfrom
nicktelford wants to merge 1 commit intoapache:trunkfrom
Conversation
When `git gc` runs, which can run automatically on large repos like Kafka, it packs all refs under `.git/refs/heads` into a single `.git/packed-refs` file. When this happens, the Gradle build can no longer locate the ref in `.git/refs/heads` that it expects. We fix this by having Gradle also search for the `.git/packed-refs` file if it cannot find the ref in `.git/refs/heads`.
Member
|
Is this still needed after #13315? |
Contributor
Author
|
@ijuma I didn't see the other PR, that looks like a better solution. |
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.
When
git gcruns, which can run automatically on large repos like Kafka, it packs all refs under.git/refs/headsinto a single.git/packed-refsfile.When this happens, the Gradle build can no longer locate the ref in
.git/refs/headsthat it expects.We fix this by having Gradle also search for the
.git/packed-refsfile if it cannot find the ref in.git/refs/heads.