|Re: How to change the location of the system configuration file? [message #753867 is a reply to message #753720]
||Sat, 29 October 2011 13:25
| Robin Rosenberg
Registered: July 2009
Eike Stepper skrev 2011-10-28 15.45:|
> Am 26.10.2011 15:32, schrieb Matthias Sohn:
>> AFAIK newer Windows versions are protecting files under "Program Files" so you need administrative privileges to change them and AFAIK there is no way to sudo from a Java
>> JGit tries to use the same location used by native git, in order to detect that it searches for git in the PATH. On my Mac this e.g. points at /usr/local/git. The system
>> configuration is then stored in the etc folder under this path.
>> This means there are the following ways how you can resolve this configuration problem
>> - modify the system configuration using a native editor started with administrative privileges
>> - modify the user configuration in your home directory instead
> Thanks for your explanations. I think I'll go this route.
>> - install native git into a not protected folder
>> - manually override the path to the git installation folder by setting the Java system property "jgit.gitprefix" to the path you want. But: this may lead to inconsistent
>> behavior as this way native git might see a different configuration than EGit/JGit.
Java has a preferences API, maybe we should use that instead of the Eclipse preferences? That way both
Eclipse and command line JGit would see the same setting.
>> Unfortunately this probably will not solve your original problem as JGit doesn't yet fully support autocrlf .
>>  https://bugs.eclipse.org/bugs/show_bug.cgi?id=301775
> Okay, it seems as if there's some progress. When the fix is on the nightly site, will we have to create new clones?
That should not be necessary. You might want to test-drive the patch yourself, building
the plugin using maven isn't hard. Pointing Eclipse to the update site is probably the hardest part :)
If you do test it, please try to make it fail. We are people that insist on
hearing bad news immediately.
Powered by FUDForum
. Page generated in 0.01526 seconds