Setting the `.gitconfig` file to be used by Pkg/Pkg3

Is it possible to specify the gitconfig file to be used when running the add commands in Pkg or Pkg3? I’m running Julia under Cygwin, and get GitConfig errors when running add commands due to symlink issues (explained here, basically my .gitconfig file is a symlink, and Julia Windows build doesn’t understand Cygwin symlinks).

I’ve tried setting the GIT_CONFIG environment variable to directly point to my actual gitconfig file (instead of to a symlink), but that doesn’t seem to make any difference. I still get the same:

ERROR: GitError(Code:ERROR, Class:Config, failed to parse config file: Invalid configuration key (in C:/cygwin64/home/Sundar/.gitconfig:1, column 0))

This happens both in 0.6 and 0.7, I get the same error from Pkg.add, update , etc. (Pkg3 gives a different message - package names could not be resolved - but there too the message goes away if I use the command outside Cygwin (in a PowerShell terminal), so the issue might be the same there too.)

Do the Pkg modules have a way to specify which gitconfig file to use? The GitConfig parts of LibGit2 are full of ccalls, so I’m not able to make sense of them and figure it out from the code.


Did you ever figure this out? I’m running into this issue now in julia 1.1.1 after switching to Windows 10 (from Windows 7).