Skip to content

The autosetuprebase and conflictStyle settings in ~/.gitconfig can cause tests to fail #8078

@probablycorey

Description

@probablycorey

I was having trouble getting the test suite to pass on the main branch. This was because I had these lines in my ~/.gitconfig.

# If these lines exists a dozen tests will fail!
[branch]
  autosetuprebase = always

It looks like it is problematic to rely on the user's .gitconfig file. A possible solution would be to unset the HOME env var in the test scripts, but I'm not sure how well that would work on windows.


Proposed Solution

@kuychaco @probablycorey @billygriffin and @outofambit discussed this further and agreed upon the following plan for now:

there's still the open question of using a standard config (or a series of them) for our tests, but i think we're punting on that for now!

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugsinfrastructureIssues and pull requests related to scripts and tooling for GitHub Desktoppriority-3Bugs that affect small number of users and/or relatively cosmetic in nature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions