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
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 {
desktop.open(file);
} catch (IOException e) {
e.printStackTrace();
}
I am building the program in Eclipse Juno and it is a git repository as well