带有 git post-receive 钩子的边带解复用器出错 [英] Error in sideband demultiplexer with a git post-receive hook
本文介绍了带有 git post-receive 钩子的边带解复用器出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经用 git 设置了我的一个 EC2 实例,并使用 post-receive 钩子将它部署到我的服务器 本教程.这是我控制台的输出:
I have set up one of my EC2 instances with git and using a post-receive hook I have it deploying to my server with this tutorial. This is the output from my console:
$ git push production master
git@example.com's password:
Counting objects: 26, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (19/19), 2.51 KiB, done.
Total 19 (delta 14), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer
To git@184.169.147.123:halftown.git
5d5e809..eb30e51 master -> master
error: failed to push some refs to 'git@example.com:git_application.git'
如果您需要其他任何帮助我解决此问题,请告诉我.
Please let me know if you need anything else to help me resolve this issue.
推荐答案
我已经解决了我遇到的问题.显然,在完成脚本之前,您必须确保您阅读了 STDIN 中的所有内容.
I have figured out the problem that I was having. Apparently, you have to make sure you read everything from STDIN before completing the script.
这是我之前的接收后挂钩:
This was my post-receive hook before:
#!/bin/sh
git checkout -f
这是我添加的解决问题的内容:
This is what I added that solved the problem:
#!/bin/sh
while read oldrev newrev refname
do
:
done
git checkout -f
这篇关于带有 git post-receive 钩子的边带解复用器出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文