git_init in gitdll.c uses USERPROFILE for creating home.
By claus.stovga... on November 15, 2011 01:02 (imported from Google Code)
What steps will reproduce the problem?
- Install tortoise git on a Windows 7 on domain without $HOME
- Right click and check settings. Export variabeles.
It gives $HOME the same as USERPROFILE. Instead of HOMEDRIVE / HOMEPATH.
From git_init in gitdll.c - Line 104
// set HOME if not set already
getenv_s(&homesize, NULL, 0, "HOME");
if (!homesize)
{
_dupenv_s(&home,&size,"USERPROFILE");
_putenv_s("HOME",home);
free(home);
}
Notice it uses the USERPROFILE.
The problem is the same as issue #922 (closed). (I guess git_init was forgotten)
It should be an easy fix.
Thanks Ahead
Claus Stovgaard