"Failed to parse config file" if .gitconfig uses CRLF and contains blank lines
What steps will reproduce the problem?
- Install Tortoise Git preview version 126.96.36.199
- .gitconfig uses windows line endings (CRLF)
- .gitconfig contains blank lines
- Open the tortoise git log for a repository
What is the expected output? What do you see instead?
The Tortoise git log should appear. Instead I get the error...
Could not get HEAD hash.
libgit2 returned: failed to parse config file: Invalid configuation key (in C:\Users\Name/.gitconfig:4, column 0)
The error is pointing at line 4 of my .gitconfig which is a blank line. Converting the file to UNIX style (LF) or removing all the blank lines makes the error disappear.
What version of TortoiseGit and Git are you using? On what operating system?
Tortoise Git version 188.8.131.52
Windows 10 Version 1709 (OS Build 16299.214)