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

release-1.6: [LibGit2] Teach tests to be resilient to init.defaultBranch (#44629) #44745

Merged
merged 1 commit into from
Mar 26, 2022

Conversation

KristofferC
Copy link
Sponsor Member

No description provided.

If a user runs the tests with a `~/.gitconfig` that provides an
`init.defaultBranch` that is not `master`, our tests fail.  Let's adjust
to the user's configuration as appropriate.  We'll also rename this to
`default_branch` to signify that it may not be called `master` anymore.

(cherry picked from commit ac1d693)
@KristofferC KristofferC merged commit 7d4cb54 into release-1.6 Mar 26, 2022
@KristofferC KristofferC deleted the kc/backport_libgit2_test_fix branch March 26, 2022 06:11
KristofferC added a commit that referenced this pull request Dec 21, 2022
#44745)

If a user runs the tests with a `~/.gitconfig` that provides an
`init.defaultBranch` that is not `master`, our tests fail.  Let's adjust
to the user's configuration as appropriate.  We'll also rename this to
`default_branch` to signify that it may not be called `master` anymore.

(cherry picked from commit ac1d693)

Co-authored-by: Elliot Saba <[email protected]>
staticfloat added a commit that referenced this pull request Dec 23, 2022
#44745)

If a user runs the tests with a `~/.gitconfig` that provides an
`init.defaultBranch` that is not `master`, our tests fail.  Let's adjust
to the user's configuration as appropriate.  We'll also rename this to
`default_branch` to signify that it may not be called `master` anymore.

(cherry picked from commit ac1d693)

Co-authored-by: Elliot Saba <[email protected]>
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