Sublime Forum

Gitconfig on HOMEDRIVE not detected

#1

On windows 7, in a locked down corporate environment, my .gitconfig file does not seem to be used. This is probably because the HOMEDRIVE is set to H:. I cannot change it.
When I press the commit button, I am prompted for Name and Email even though that is already in my .gitconfig file.

The path to the .gitconfig file is:
H:.gitconfig

Environment:
HOMEDRIVE: H:
HOMEPATH: \

0 Likes

#2

I believe we’re currently looking in %USERPROFILE% instead of %HOMEDRIVE%%HOMEPATH% - I’ll change that around for the next build

0 Likes

#3

My issue is related to this. Home is on a network drive but .gitconfig is stored on local. Sublime Merge is then trying to access N:/.gitconfig which does not exist and throws fatal: unable to access: 'N://.gitconfig': Invalid argument error message.

Environment

  • Windows 10
  • Sublime Merge portable, build 1119
  • Git config: c:\Zdenek\Git\.gitconfig
  • HOMEDRIVE: N:

Working solution for PortableGit is to add following to \etc\profile

HOMEPATH=/c/Zdenek/Git
HOMEDRIVE=/c
0 Likes