Why does git for windows uses %HOMEDRIVE%%HOMEPATH% as its configuration directory ???

2,189 views
Skip to first unread message

leve...@gmail.com

unread,
Jun 19, 2013, 10:29:37 AM6/19/13
to msy...@googlegroups.com
Hello,

I had to override the %HOME% environment variable ( which could be better named as something like %GIT_HOME% ) because in our enterprise,  %HOMEDRIVE% and %HOMEPATH% are set in the AD to a directory without write access, and we can't override this variables.

Shouldn't  you use  « %userprofile%\appdata\whatever... » instead ?

Julien

Johannes Schindelin

unread,
Jun 19, 2013, 11:15:41 AM6/19/13
to leve...@gmail.com, msy...@googlegroups.com
Hi Julien,

On Wed, 19 Jun 2013, leve...@gmail.com wrote:

> I had to override the %HOME% environment variable ( which could be better
> named as something like %GIT_HOME% ) because in our enterprise,
> %HOMEDRIVE% and %HOMEPATH% are set in the AD to a directory without write
> access, and we can't override this variables.
>
> Shouldn't you use ᅵ %userprofile%\appdata\whatever... ᅵ instead ?

Please search the mailing list archives for an extensive discussion of
this issue. We basically chose the least annoying solution.

I would also appreciate if you summarized the discussion, with links, at a
location where you would have found it yourself (but did not, because the
information was not there).

Thanks,
Johannes

Heiko Voigt

unread,
Jun 25, 2013, 5:52:00 PM6/25/13
to Johannes Schindelin, leve...@gmail.com, msy...@googlegroups.com
On Wed, Jun 19, 2013 at 05:15:41PM +0200, Johannes Schindelin wrote:
> Hi Julien,
>
> On Wed, 19 Jun 2013, leve...@gmail.com wrote:
>
> > I had to override the %HOME% environment variable ( which could be better
> > named as something like %GIT_HOME% ) because in our enterprise,
> > %HOMEDRIVE% and %HOMEPATH% are set in the AD to a directory without write
> > access, and we can't override this variables.
> >
> > Shouldn't you use � %userprofile%\appdata\whatever... � instead ?
>
> Please search the mailing list archives for an extensive discussion of
> this issue. We basically chose the least annoying solution.

AFAIR it was because MSDN says that %HOMEDRIVE%%HOMEPATH% should be
writeable by the user and %userprofile%\... does not need to be
writeable. That was the reason why we choose to use this location
because according to Microsoft this is the right thing. If you say
that its different for you then maybe your enterprises setup is not as
Microsoft specifies it. I do not have the links stating this at hand
right now but they should be in the discussion in the mailing list
archives.

Cheers Heiko
Reply all
Reply to author
Forward
0 new messages