Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Relative path to HOME directory

Songpants skrev 2011-12-13 09.12:
Dear list,

I'm pretty new to the Git Universe, but managed to set Git up on my computer. Being a great fan of portable software, I chose the portable version of Git which needs some
tweaking with respect to also making the user's home directory portable. However, AFAIU EGit solely relies on a specifically set Windows HOME variable, right? Is it
possible to change that to relative path somehow (let's say taking the directory where eclipse.exe resides as a reference point)? I could set up a respective environment
variable in Eclipse that EGit could pick up to find HOME. That would really be cool as that way I wouldn't have to "hard-set" HOME to the home directory I only need when
using Git (which is on my USB drive)

Thanks for any answers!

No you cannot override that, but you could create a script that sets HOME and launches Eclipse.

The reason is that Java has user.home point to the roaming profile, which is usually not what one (me at least), so we override
it do be C Git compatible.

Then of course, the real question is: Why do you want EGit, and nobody else, to believe HOME is a USB disk?

-- robin


Back to the top