2011-11-19 56 views
1

我在debian上遇到了eclipse問題。 當我嘗試從github導入git項目時,使用egit我得到了 無法創建臨時存儲庫。eclipse:不可能導入git項目

設置我的項目屬性後出現錯誤。

但是,我使用sudo運行eclipse時工作正常。

我認爲這將是地方與錯誤的權限,但不能找出其中:S

我希望得到一些幫助。

感謝提前!

回答

3

考慮到source of org.eclipse.egit.ui.internal.clone.SourceBranchPage.java提到/tmp,它應該與/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; 
} 

OP jlengrand居然在評論報道:

問題實際上很簡單,但非常方便追查:
.gitconfig文件有我的debian升級過程中被損壞,導致egit崩潰。

+0

哇,我一定會到處看看。謝謝 ! – jlengrand

+0

Humpph,有點怪,不過,作爲ls -l給我:drwxrwxrwt 9 root root 4096 Nov 20 18:17 tmp /。我應該擁有所有需要的權利。 – jlengrand

+0

好的,最後,你提到了我的正確道路。事實上這個問題很簡單,但追查起來非常方便:s。我的.gitconfig文件在debian升級過程中被損壞,導致egit崩潰。感謝提示Von C;) – jlengrand