简体   繁体   中英

eclipse : impossible to import git project

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 !

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM