Git configuration under XDG_CONFIG_HOME is not recognized correctly
What steps will reproduce the problem?
Config-Path with XDG_CONFIG_HOME environment Variable does not work correct.
- Create environment variable XDG_CONFIG_HOME with C:\test
- Place a file called "config" with git configrution entries under C:\test\.config\git
- Remove gitconfig from HOME directory
- Open TortoiseGit/Settings
- Choose Git in the navigation tree
What is the expected output? What do you see instead?
TortoiseGit/Settings-Dialog should show the user name and email from config under XDG_CONFIG_HOME. Actually no username and email is shown in the dialog. No Git-Action like commit, push, pull, ... is possible.
Entering user name and email in the dialog creates a new global gitconfig in the HOME-Directory. This is not OK because git ignores than XDG-Configuration.
There must be an error in the path handling of the different configuration files.
What version of TortoiseGit and Git are you using? On what operating system?
Version Git: 2.42.0.windows.2
Version TortoiseGit: 2.15.00
Please provide any additional information below.
Do the following Steps to get a another hint that there might be some problems with the path handling.
- Create environment variable XDG_CONFIG_HOME with C:\test
- Remove gitconfig from HOME directory
- Place a file "config" with git configrution entries under HOME/.config/git
- Open TortoiseGit/Settings
- Choose Git in the navigation tree
The dialog TortoiseGit/Settings looks now different. New Buttons with XDG-Config appear and the user name and email form the config file under HOME/.config/git is shown in the dialog.
It seems that the path of XDG_CONFIG_HOME variable is replaced by the path of the HOME directory.