Issue
I got a problem with my eclipse, on debian. When I try to import a git project from github, using egit I got a Couldn't create temporary repository.
error after having set my project properties.
However, I works ok when using running eclipse with sudo.
I think it would be related to wrong permissions somewhere, but cannot figure out where :s
I would appreciate some help.
Thanks by advance !
Solution
Considering the source of org.eclipse.egit.ui.internal.clone.SourceBranchPage.java
mentions /tmp
, it should be related with some permission issue around /tmp
.
try {
final URIish uri = newRepoSelection.getURI();
final Repository db = new Repository(new File("/tmp"));
listRemoteOp = new ListRemoteOperation(db, uri);
getContainer().run(true, true, listRemoteOp);
} catch (IOException e) {
transportError(UIText.SourceBranchPage_cannotCreateTemp);
return;
}
The OP jlengrand actually reports in the comments:
The problem was simple in fact, but quite handy to track down:
My.gitconfig
file had been corrupted during my debian upgrade, which caused egit to crash.
Answered By - VonC