2012-03-06 8 views
8

gitでEC2インスタンスを設定し、ポスト受信フックを使用してサーバにthis tutorialをデプロイしました。これは私のコンソールからの出力です:gitポスト受信フック付きサイドバンドデマルチプレクサのエラー

$ git push production master 
[email protected]'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 [email protected]:halftown.git 
    5d5e809..eb30e51 master -> master 
error: failed to push some refs to '[email protected]:git_application.git' 

私はこの問題を解決するために何か必要があれば教えてください。

+0

が重複する可能性の前に

これは私のポスト受けるフックでした(http://stackoverflow.com/questions/4582849/git-responds-with-error-in-sideband-demultiplexer) – Amber

+1

私はもともとそれが重複していると思ったが、頭をリセットしてもそれを修正しなかった。私はSTDINを読むフックを得ていると私は思っています。 –

答えて

16

私が持っていた問題を理解しました。どうやら、スクリプトを完成させる前にSTDINからすべてを読んでください。これは私が問題を解決したことを追加するものである

#!/bin/sh 
git checkout -f 

:[Gitの「サイドバンドの分波器におけるエラー」で応答]の

#!/bin/sh 
while read oldrev newrev refname 
do 
: 
done 
git checkout -f 
+0

どの言語を使っていても、最初にSTDINを必ず読んでください。 –

+0

これは私にとって素晴らしい仕事でした。 –

関連する問題