Git exception in Eclipse when code not using git

I get this error whenever I open an external folder from inside my running Java program:

fatal: Not a git repository (or any of the parent directories): .git

  • How to merge my local project with a github project?
  • Not able to import git android project in Eclipse
  • Groovy Grails Tool Suite with Subversion
  • How to convert a remote branch into a local one in Eclipse using Bitbucket?
  • Building Eclipse IDE from scratch - how to specify the target OS?
  • Git-svn and Eclipse?
  • As far as I can tell, everything is working perfectly and the error perplexes me.

    The code used to open the folder:

    File file = new File(saveDirectory);
    Desktop desktop = Desktop.getDesktop();
    try {;
    } catch (IOException e) {

    I am building the program in Eclipse Juno and it is a git repository as well

  • Git Subtree. Why can't I branch from a subtree rather than the root?
  • Can I hide commits' time when I push to GitHub?
  • How can i push a git history to svn
  • git: rename file and change the content of the file
  • Git line number before and after
  • Maintain some changes on git merge
  • One Solution collect form web for “Git exception in Eclipse when code not using git”

    There’s a bug regarding this same error.

    Update the bundler and see if it works. Apparently some bundlers remove the .git directory.

    Git Baby is a git and github fan, let's start git clone.