Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bisection when the original checkout is for a single branch. #5478

Merged
merged 3 commits into from
Mar 23, 2021

Conversation

oliverchang
Copy link
Collaborator

@oliverchang oliverchang commented Mar 23, 2021

Repos cloned with --branch BRANCH will only track that branch, even
when we unshallow. If we provide a git SHA from another branch, it will
not be recognized.

To fix, this, we update the remote tracking config and fetch them.

For google/osv.dev#88.

Repos cloned with `--branch BRANCH` will only track that branch, even
when we unshallow. If we provide a git SHA from another branch, it will
not be recognized.

To fix, this, we update the remote tracking config and fetch them.

Fixes google/osv.dev#88.
@oliverchang
Copy link
Collaborator Author

PTAL. Only calling this from the bisector for now to be cautious as I'm not sure if this would have unintended consequences elsewhere.

@oliverchang oliverchang merged commit e8646d2 into master Mar 23, 2021
@oliverchang oliverchang deleted the fix-bisect-checkout branch March 23, 2021 03:17
@jonathanmetzman
Copy link
Contributor

LGTM. What repo was this a problem for? I can test CIFuzz there.

@oliverchang
Copy link
Collaborator Author

LGTM. What repo was this a problem for? I can test CIFuzz there.

QT was the one.

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.

3 participants