将git存储库推送到gitblit

时间:2018-07-11 13:58:17

标签: java git push gitblit

我在将git存储库推送到gitblit服务器上时遇到一些问题。 我收到以下错误(客户端):

Counting objects: 10386, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3200/3200), done.
fatal: Cannot receive pack: 10386)
fatal: sha1 file '<stdout>' write error: Broken pipe
error: remote unpack failed: error Invalid tree 8b45e75195: invalid name '.git'
error: failed to push some refs to 'ssh://admin@localhost:29418/repositoryname.git'

我收到的服务器端:

2018-07-11 15:43:40 [INFO ] creating ssh session from /0:0:0:0:0:0:0:1:55011
2018-07-11 15:43:45 [ERROR] Internal server error (user admin) during git git-receive-pack '/repositoryname.git'
com.gitblit.transport.ssh.commands.BaseCommand$Failure: fatal: Cannot receive pack:
        at com.gitblit.transport.ssh.git.Receive.runImpl(Receive.java:36)
        at com.gitblit.transport.ssh.git.BaseGitCommand.service(BaseGitCommand.java:72)
        at com.gitblit.transport.ssh.git.BaseGitCommand.access$100(BaseGitCommand.java:33)
        at com.gitblit.transport.ssh.git.BaseGitCommand$1.run(BaseGitCommand.java:59)
        at com.gitblit.transport.ssh.commands.BaseCommand$TaskThunk.run(BaseCommand.java:331)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at com.gitblit.utils.WorkQueue$Task.run(WorkQueue.java:332)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.jgit.errors.UnpackException: Exception while parsing pack stream
        at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:251)
        at org.eclipse.jgit.transport.ReceivePack.receive(ReceivePack.java:161)
        at com.gitblit.transport.ssh.git.Receive.runImpl(Receive.java:34)
        ... 12 more
Caused by: org.eclipse.jgit.errors.CorruptObjectException: Invalid tree 8b45e75195: invalid name '.git'
        at org.eclipse.jgit.transport.PackParser.verifySafeObject(PackParser.java:1054)
        at org.eclipse.jgit.transport.PackParser.whole(PackParser.java:1035)
        at org.eclipse.jgit.transport.PackParser.indexOneObject(PackParser.java:952)
        at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:523)
        at org.eclipse.jgit.internal.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:194)
        at org.eclipse.jgit.transport.BaseReceivePack.receivePack(BaseReceivePack.java:1233)
        at org.eclipse.jgit.transport.BaseReceivePack.receivePackAndCheckConnectivity(BaseReceivePack.java:1005)
        at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:192)
        ... 14 more
Caused by: org.eclipse.jgit.errors.CorruptObjectException: invalid name '.git'
        at org.eclipse.jgit.lib.ObjectChecker.checkPathSegment2(ObjectChecker.java:546)
        at org.eclipse.jgit.lib.ObjectChecker.checkTree(ObjectChecker.java:422)
        at org.eclipse.jgit.lib.ObjectChecker.check(ObjectChecker.java:197)
        at org.eclipse.jgit.transport.PackParser.verifySafeObject(PackParser.java:1052)
        ... 21 more

我不明白“无效名称'.git'”的含义,因为它是默认的git文件夹。 我试图将我的存储库推送到本地存储库或使用其他git服务器(用于istance bitbucket),并且所有工作正常,问题似乎仅在gitblit中。

感谢您的支持。

Luca

0 个答案:

没有答案