libgit2 fails to resolve absolute symlinks
.gitconfig file in my home directory is a symbolic ink to the "real" file in another location. (A portable SSD in my case.) This results in an error during installation when the installer attempts to save Credential Helper settings. Specifically:
libgit2 returned: failed to create lock file 'C:/Users/userName/.gitConfigP:/path/to/symlink/tatget/.gitconfig.lock': The filename, directory name, or volume label syntax is incorrect.
For some reason, the installer is creating a path consisting of the symlink path and the target/real file concatenated together resulting in an invalid path (since it has a second drive letter value mid-path).
What steps will reproduce the problem?
- Have a preexisting condition that your
.gitconfigfile in your home directory is a symbolic link to a "real"
.gitconfigfile in another directory on another drive.
- Run the installer and attempt to have it save "Credential Helper" settings.
What is the expected output? What do you see instead?
A successful install is expected. Instead the following error message is displayed in a dialog: " libgit2 returned: failed to create lock file 'C:/Users/userName/.gitConfigP:/path/to/symlink/tatget/.gitconfig.lock': The filename, directory name, or volume label syntax is incorrect."
What version of TortoiseGit and Git are you using? On what operating system?
- TortoiseGit: v126.96.36.199
- Git: v2.11.0.windows.1
- Windows 7 Ultimate 64-bit with Service Pack 1
Please provide any additional information below.