2009-09-22 94 views
0

我使用混帳推未能

mkdir /var/git/myapp.git 
cd /var/git/myapp.git 
git --bare init 

上週我這樣做對我們的3目前正在開發的應用程序創建的我部門的Sun Solaris的服務器上集中Git倉庫,而推動這些應用程序的主服務器

git remote add origin ssh://myserver.com/var/git/myapp.git 
git push origin master 

這個工作,並建立了信息庫和可複製/從他們

本週拉我試圖創建一個測試應用程序和reposi保守黨所以我可以測試使用Capistrano的部署這些應用程序我遵循同樣的precedure

服務器上:

mkdir /var/git/testapp.git 
cd /var/git/testapp.git 
git --bare init 

地方:

cd /path/to/testapp 
git remote add origin ssh://myserver.com/var/git/testapp.git 
git push origin master 

而且我得到了

Counting objects: 64, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (56/56), done. 
ld.so.1: git: fatal: relocation error: file /usr/local/bin/git: symbole deflateBound: referenced symbol not found 
fatal: sha1 file '<stdout>' write error: Invalid argument 
error: pack-objects died with strange error 
error: failed to push some refs to 'ssh://myserver.com/var/git/myapp.git' 

確定它是我的設置上的錯誤我刪除了testapp.git和testapp在我的本地機器和sta上從頭開始測試應用程序相同的結果,所以我試圖從一個現有的應用程序推送,即使上週我可以推送到服務器,我也會得到相同的結果。

任何想法?

回答

8

我會說你在服務器上的git安裝不好。

它試圖執行/ usr/local/bin/git那裏和一些符號丟失,我敢打賭你有一個庫不匹配。

你的回購本身沒有問題,它的git安裝,嘗試在服務器中手動執行/ usr/local/bin/git。

也許您在shell中使用的git二進制文件不是/ usr/local/bin/git或某些失敗的權限與所需的.so庫。

0

我得到這與localhost和github之間的多斑點無線互聯網連接;建議嘗試一個可靠的連接,看看你是否仍然有相同的問題。