Git GUI .gitconfig and .ssh location

332 views
Skip to first unread message

Michael

unread,
May 27, 2009, 5:20:10 PM5/27/09
to msysGit
I found a post about this same issue at
http://groups.google.com/group/msysgit/browse_thread/thread/5647c8e2fa00f619/d053c4ee7ff7ff29?lnk=gst&q=gitconfig+location#d053c4ee7ff7ff29,
but there was no clear response/resolution, so I am posting about it
again.

I just downloaded git on my work machine yesterday, getting the latest
version available. I, too, have a remote drive mapped to 'H:', and
for some reason, Git GUI is looking for/storing both .gitconfig and
the .ssh folders there, while git bash is correctly storing/looking
for them in my home directory.

This is extremely frustrating, as I have to remember to change my
settings in both places each time I make a configuration change.

Setting the windows "Start in:" string in the git gui shortcut doesn't
work. (I am running Windows XP 64-bit).

Anyone have any suggestions/fixes for this?

Johannes Schindelin

unread,
May 29, 2009, 8:01:05 AM5/29/09
to Michael, msysGit
Hi,

I think this will be fixed in the next Git for Windows release, as we use
the same definition of HOME in Git Bash as Git GUI already does then.

Ciao,
Dscho

Heiko Voigt

unread,
May 29, 2009, 10:32:08 AM5/29/09
to Johannes Schindelin, Michael, msysGit

In the meantime you can set the HOME environment variable to a location
where you want your home folder. I've just tried it and opposed to the
OP statement it works for both Bash and GUI.

The future default for both will be derived from the HOMEDRIVE, HOMEPATH
variables. Which currently is only used by Git GUI.

cheers Heiko

Michael

unread,
May 29, 2009, 11:21:23 AM5/29/09
to msysGit
Actually, the problem was the my USER_HOME and USERPROFILE env vars
were pointing to the location I wanted, but my HOMEDRIVE and HOMEPATH
vars were not (and I did not have control over the HOMEDRIVE and
HOMEPATH vars because my account was an AD account controlled by my
company's IT guru. (I didn't have a HOME env var set.)

So, Git Bash was likely using either USER_HOME or USERPROFILE, and Git
GUI was likely using HOMEDRIVE and HOMEPATH. I got our IT guru to
change my HOMEDRIVE and HOMEPATH to the location I wanted.

But I tested Heiko's solution by setting the HOME env var and it was
able to override the home location for both!

Thanks!

On May 29, 10:32 am, Heiko Voigt <hvo...@hvoigt.net> wrote:
> On Fri, May 29, 2009 at 02:01:05PM +0200, Johannes Schindelin wrote:
>
> > Hi,
>
> > On Wed, 27 May 2009, Michael wrote:
>
> > > I found a post about this same issue at
> > >http://groups.google.com/group/msysgit/browse_thread/thread/5647c8e2f...,
Reply all
Reply to author
Forward
0 new messages