mike
mike

Reputation: 1175

Egit installation path error

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 ?

Upvotes: 7

Views: 16575

Answers (2)

GregM
GregM

Reputation: 750

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.

Upvotes: 2

VonC
VonC

Reputation: 1323343

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

Upvotes: 6

Related Questions