Skip to content

fix(git): Fix tests when running on a machine with init.defaultBranch set#358

Merged
asheshgoplani merged 1 commit intoasheshgoplani:mainfrom
jennings:tests-no-assume-default-branch-name
Mar 18, 2026
Merged

fix(git): Fix tests when running on a machine with init.defaultBranch set#358
asheshgoplani merged 1 commit intoasheshgoplani:mainfrom
jennings:tests-no-assume-default-branch-name

Conversation

@jennings
Copy link
Copy Markdown
Contributor

@jennings jennings commented Mar 17, 2026

Tests fail when running with init.defaultBranch set to something like "trunk" in the global config.

Set the value explicitly when initializing a test repository, to isolate tests from global git config.

… set

Tests fail when running with `init.defaultBranch` set to something like
"trunk".

Set the value explicitly when initializing a test repository, to isolate
tests from global git config.
@asheshgoplani asheshgoplani merged commit 4dda3d8 into asheshgoplani:main Mar 18, 2026
1 check passed
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