Search code examples
eclipseegit

Eclipse (GGTS) "Computing Git status for repository [username]"


Each time I save an edit in Eclipse (GGTS/STS v3.4) it automatically runs the task: Computing Git status for repository [username].

The CPU usage rockets but it never seems to make any progress. I've left the process running for up to 15 minutes before giving up and stopping it manually. It then restarts the next time I save a change.

Presumably EGit is trying to synchronise but it isn't really clear what or why. Does anyone know why this might be happening and how to stop it?


Solution

  • Older versions of EGit used to automatically connect a project to its Git repository in case it finds a .git in any of the project's parent directories.

    In your case, it seems you have a Git repository in your home directory. Depending on the size of your home directory, this can take a long time.

    Since EGit 3.0.2, the home directory is no longer automatically indexed. So, make sure you are using EGit 3.0.2 or higher. In case you are using Eclipse 4.3.0, upgrade to 4.3.1. Otherwise upgrade to the newest version from the EGit download page.

    After upgrading, open the Git Repositories view (using Ctrl+3 or Cmd+3 and typing its name). Then find the repository named [username] and remove it from the view.