Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Egit installation path error

Tags:

eclipse

egit

Eclipse Kepler 4.3.0.v20130530-1801

Egit version: 3.0.0.201306101825-r

After launching Eclipse and checking the Error Log I have the following warning:

EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory. The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in this system level configuration. The Git installation location can be configured on the Team > Git > Configuration preference page's 'System Settings' tab. This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

So I need an entry in the file gitconfig for core.autocrlf ?

like image 988
mike Avatar asked Jul 21 '13 19:07

mike


2 Answers

This kind of warning message seems to be related to this Egit commit.
This post suggests:

Solution:
Go to Window > Preferences > Team > Git > Configuration > System Settings Tab
Click on Browse and find your git system installation.
Windows example: C:\Program Files (x86)\Git\etc\gitconfig

like image 186
VonC Avatar answered Nov 20 '22 13:11

VonC


I was getting the same Warning from Eclipse on an Android SDK installation in Windows 7. The solution for me was to download Git from git-scm.download/win and installing in the default "Program Files (x86)/Git" directory. You can then reference this directory by navigating within Eclipse to:

  • Window -> Preferences
  • Team -> Git -> Configuration
  • Tab "System Settings"
  • Location: C:\Program Files (x86)\Git\etc\gitconfig

Otherwise, you can ignore the Warning if you have no need for a Git installation.

like image 2
GregM Avatar answered Nov 20 '22 11:11

GregM