2012-04-18 104 views
1

我有gerrit服務器運行和連接到此服務器的git存儲庫。 我可以從這個gerrit服務器簽出並獲取位於git存儲庫中的源代碼。但是,當我試圖提交一些更改並將它們提交給Git存儲庫時,它似乎不會將這些更改推送到git存儲庫。 我編輯replication.config文件是這樣的:從gerrit提交到Git

[remote "Main"] 
     url = https://portal-ua.tms.com/git/${name}.git/ 
     push = +refs/heads/*:refs/heads/* 
     push = +refs/tags/*:refs/tags/* 

可能是什麼問題? 在日誌中我得到了以下錯誤:

org.eclipse.jgit.errors.NotSupportedException: remote does not support smart HTTP push 
     at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:378) 
     at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:130) 
     at org.eclipse.jgit.transport.Transport.push(Transport.java:1120) 
     at com.google.gerrit.server.git.PushOp.pushVia(PushOp.java:281) 
     at com.google.gerrit.server.git.PushOp.runImpl(PushOp.java:226) 
     at com.google.gerrit.server.git.PushOp.runPushOperation(PushOp.java:179) 
     at com.google.gerrit.server.git.PushOp.run(PushOp.java:161) 
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
     at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) 
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) 
     at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:333) 
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
     at java.lang.Thread.run(Thread.java:662) 

是否可以通過HTTP從格里特推到git的回購呢? 先謝謝您。

回答

0

我做了不成功的HTTP,但通過ssh它與目前的命令工作:

的ssh -p 29418格里特審查--project $ GERRIT_PROJECT --submit $ GERRIT_CHANGE_NUMBER,$ GERRIT_PATCHSET_NUMBER