Skip to content

fix(test): git init with a default test user - #11998

Closed
IdrisGit wants to merge 1 commit into
anomalyco:devfrom
IdrisGit:fix-test-fixture-git-config
Closed

fix(test): git init with a default test user#11998
IdrisGit wants to merge 1 commit into
anomalyco:devfrom
IdrisGit:fix-test-fixture-git-config

Conversation

@IdrisGit

@IdrisGit IdrisGit commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

when a user have $XDG_CONFIG_HOME set on their system, git looks for global config in the $XDG_CONFIG_HOME directory, since preload sets the $XDG_CONFIG_HOME to a temp directory, the git resolution fails leading to failing tests because init exited with an error.

screenshot from my system below, I have $XDG_CONFIG_HOME set to the ~/.config directory

image

How did you verify your code works?

I have been using this default user setup for a while now so that I can run tests locally, but I am tired of keeping it staged and stashing for every branch, so decided to open the PR finally.

screenrecording

test_fix_compressed.mp4
@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

when a user have $XDG_CONFIG_HOME set on their system, git looks for
global config in the $XDG_CONFIG_HOME directory, since preload sets the
$XDG_CONFIG_HOME to a temp directory, the git resolution fails leading
to failing tests because init exited with an error.
@IdrisGit
IdrisGit force-pushed the fix-test-fixture-git-config branch from 45227a0 to 4f5ee3d Compare February 3, 2026 19:42
@github-actions

github-actions Bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant