Git 推送停止“写入对象:100%”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7104182/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Git push halts on "Writing Objects: 100%"
提问by lysergic-acid
I have set up a linux box with a Git repository (using xinetd).
我已经设置了一个带有 Git 存储库的 linux 机器(使用 xinetd)。
I have enabled receive-pack for the git daemon to enable pushing to the repository.
我已经为 git 守护进程启用了接收包以启用推送到存储库。
Here's my current testing workflow:
这是我当前的测试工作流程:
- On git server, run:
- 在 git 服务器上,运行:
mkdir something
cd something
git init --bare
mkdir 东西
cd 东西
git init --bare
- On a client box:
- 在客户端上:
git clone git://server/repo
git clone git://server/repo
(msg about cloning an empty repository)
(关于克隆空存储库的消息)
Perform some commits to the cloned repository.
git push
对克隆的存储库执行一些提交。
git push
getting this msg:
收到此消息:
Counting objects: 8, done.
Compressing objects: 100% (3/3) done,
Writing objects: 100% (6/6)
This does not finish. I have introduced only a small change, so this should be completed very quickly.
这还没有结束。我只介绍了一个小的变化,所以这应该很快完成。
am i doing something wrong here?
我在这里做错了吗?
采纳答案by lysergic-acid
The issue is with mgitsys client
问题在于 mgitsys 客户端
Read more here: MGitsys Bug
在此处阅读更多信息:MGitsys 错误
As a workaround, i am using an older version: git version 1.7.4.rc1.3197.gbf965
作为一种解决方法,我使用的是旧版本:git version 1.7.4.rc1.3197.gbf965
This one doesn't have this bug in it.
这个没有这个bug。
I have placed this specific build in my SkyDrive public folder, link: http://sdrv.ms/MeuWTD
我已将此特定版本放在我的 SkyDrive 公共文件夹中,链接:http: //sdrv.ms/MeuWTD
Hopefully it will be fixed in the near future.
希望它会在不久的将来得到修复。
回答by Adrian Cornish
If you are using msysgit - they have just released a version that allows a config option to stop git hanging.
如果您使用的是 msysgit - 他们刚刚发布了一个允许配置选项来停止 git 挂起的版本。
Fix is for https://github.com/msysgit/git/issues/101in release https://github.com/msysgit/msysgit/releases/tag/Git-1.9.4-preview20140611
修复是https://github.com/msysgit/git/issues/101在发布https://github.com/msysgit/msysgit/releases/tag/Git-1.9.4-preview20140611
You can fix it by setting
您可以通过设置修复它
git config --global sendpack.sideband false