问题描述
我是git的新手,目前正尝试在opensuse上设置含乙醇钠和铁轨的环境.
I'm very new to git and currently trie to setup an environment with gitolite and trac on opensuse.
我设法使用 http://john的脚本迁移了旧的svn存储库. albin.net/git/git-svn-migrate .
现在,由于git-receive-pack命令的行为与预期不符,因此我一直坚持使用trac/git-integration.
Now I'm stuck with the trac/git-integration since the git-receive-pack command doesn't behave as expected.
执行以下命令时,它在打印0000后挂起,我必须按CTRL + C返回.
When performing the below command, it hangs after printing 0000 and I got to press CTRL+C to return.
$ git-receive-pack .
0072c0b863c86da4bb75caa8cb5b6cd46604096b84e9 refs/heads/master report-status delete-refs side-band-64k ofs-delta
0046c0b863c86da4bb75caa8cb5b6cd46604096b84e9 refs/remotes/origin/HEAD
0048c0b863c86da4bb75caa8cb5b6cd46604096b84e9 refs/remotes/origin/master
0000
我尝试使用cygwin上的git在新迁移的存储库,gitolite管理存储库以及Windows客户端上的本地克隆上执行命令.在所有情况下,我都坚持上述行为.
I tried to execute the command on the fresh migrated repository, on the gitolite admin repository and on a local clone on my windows client with git on cygwin. In all cases I'm stuck with the above behaviour.
receive-pack返回一些可能正确的行,后跟0000并挂起.
receive-pack returns some probably correct lines, followed by 0000 and hangs.
有人知道这是怎么回事吗?
Does anyone have an idea what here is going on?
有关git-receive-pack的所有注释都集中在证书或路径错误上,它们全部或全部无法正常工作.但就我而言,它返回了几行并停止了??
All comments on git-receive-pack focus on certificate or path errors - and they all work completely or not. But in my case it returns a few lines and stops???
我为什么要问这个?
我的trac安装返回以下错误:
My trac installation return the following error:
Trac[git_fs] ERROR: GitError: Could not retrieve GIT version (tried to execute/parse '/usr/bin/git-receive-pack --version' but got ValueError('need more than 0 values to unpack',))
克隆,拉动和推入似乎可以工作,但是我在svn中的标记名称中出现一个'ä'时出现了另一个错误,该错误在svn到git-migration迁移后导致了gitolite的问题.所以我认为git可能还有另一个问题.
Cloning, pulling and pushing seems to work, but I've had another error with an 'ä' in a tag name in svn which caused problems with gitolite after svn-to-git-migration. So I thought there might by another issue with git.
推荐答案
如手册页
最终用户通常不直接调用此命令.
协议的用户界面位于git send-pack一侧,该程序对用于将更新推送到远程存储库
This command is usually not invoked directly by the end user.
The UI for the protocol is on the git send-pack side, and the program pair is meant to be used to push updates to remote repository
因此,不要花太多时间测试那个命令.检查是否可以克隆/推送/拉回购.
So don't spend too much time testing that command. Check if you can clone/push/pull your repos.
这篇关于git receive-pack停止为0000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!