2015-04-25 40 views
1

這聽起來很愚蠢。但是,無論如何都想知道。我試圖使用NetBeans 8.按照該項目的sourceforge的頁面克隆從SourceForge git倉庫,通過git克隆可以用上面的鏈接提到here通過以下方式使用Netbeans 8.0.1的Sourceforge Git克隆

git clone git://git.code.sf.net/p/neembuuuploader/gitcode neembuuuploader-gitcode 

來完成。

Netbeans拋出錯誤,因爲它無法連接到服務器。 主文件夾的根目錄中有modules。我試着用url追加它,但仍然是同樣的問題。

enter image description here

我還沒有嘗試過的任何其他的git克隆機構(例如來自終端),因爲我需要它從僅Netbeans的。我可以理解,我在克隆url中犯了錯誤。

什麼應該是我必須使用的正確形式?

+0

嗯,我檢查了這一點(沒有雙關語意),這是一個NetBeans的問題。在終端工作正常...試圖找出... –

+0

嗯我做了我可以,但這是一個奇怪的錯誤。也許提交一張票? –

回答

1

下面是從NetBeans中的日誌:

INFO [org.netbeans.modules.git]: git://git.code.sf.net/p/neembuuuploader/gitcode neembuuuploader-gitcode: not found. 
org.eclipse.jgit.errors.NoRemoteRepositoryException: git://git.code.sf.net/p/neembuuuploader/gitcode neembuuuploader-gitcode: not found. 
    at org.eclipse.jgit.transport.BasePackConnection.noRepository(BasePackConnection.java:263) 
    at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefsImpl(BasePackConnection.java:198) 
    at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefs(BasePackConnection.java:176) 
    at org.eclipse.jgit.transport.TransportGitAnon$TcpFetchConnection.<init>(TransportGitAnon.java:194) 
    at org.eclipse.jgit.transport.TransportGitAnon.openFetch(TransportGitAnon.java:120) 
    at org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:74) 
Caused: org.netbeans.libs.git.GitException: git://git.code.sf.net/p/neembuuuploader/gitcode neembuuuploader-gitcode: not found. 
    at org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:259) 
    at org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:87) 
    at org.netbeans.libs.git.jgit.commands.TransportCommand.run(TransportCommand.java:191) 
    at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:80) 
    at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:77) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:77) 
    at org.netbeans.libs.git.GitClient.listRemoteBranches(GitClient.java:861) 
    at org.netbeans.modules.git.client.GitClient$35.call(GitClient.java:589) 
    at org.netbeans.modules.git.client.GitClient$35.call(GitClient.java:585) 
    at org.openide.util.NetworkSettings.suppressAuthenticationDialog(NetworkSettings.java:140) 
    at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:885) 
    at org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:906) 
    at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:918) 
    at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:851) 
    at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:829) 
    at org.netbeans.modules.git.client.GitClient$CommandInvoker.access$400(GitClient.java:823) 
    at org.netbeans.modules.git.client.GitClient.listRemoteBranches(GitClient.java:585) 
[catch] at org.netbeans.modules.git.ui.clone.RepositoryStep$RepositoryStepProgressSupport.perform(RepositoryStep.java:325) 
    at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:114) 
    at org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:107) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) 

我不明白爲什麼它不工作。它適用於其他存儲庫。也許URL中的空間將它扔掉了?也許它只是不喜歡那臺服務器?

我只是在它的工作在命令行:

git clone git://git.code.sf.net/p/neembuuuploader/gitcode neembuuuploader-gitcode 

我試過SVN太:

svn://svn.code.sf.net/p/neembuuuploader/code/ neembuuuploader-code' 

這給了我這樣的例外:

org.apache.subversion.javahl.ClientException: E170000: URL 'svn://svn.code.sf.net/p/neembuuuploader/code/%20neembuuuploader-code' non-existent in revision 705 

我真的不明白爲什麼這個錯誤發生ng ...


這可能是一個IDE錯誤。這可能是值得提交錯誤報告:https://netbeans.org/community/issues.html

+0

對不起,我忍不住:P –

1
git://git.code.sf.net/p/neembuuuploader/gitcode neembuuuploader-gitcode 

實際上是通過在CLI與git克隆命令兩個參數,第一個是 庫的URL,您的硬盤驅動器上的第二個本地文件夾克隆 到。

我們必須使用git://git.code.sf.net/p/neembuuuploader/gitcode進入Netbeans的 網址字段。

感謝來自NetBeans Dev團隊的Ondrej Vrabec。

參考:https://netbeans.org/bugzilla/show_bug.cgi?id=252090