2011-09-25 79 views
0

當我嘗試部署到我新建立的服務器時,capistrano將此引發給我。Capistrano錯誤捆綁從git指南針

*** [err :: fupifarvandet.dk] fatal: Could not parse object '22e2458b77519e8eb8463170c1a1fe4bab105f3e'. 
** [out :: fupifarvandet.dk] Git error: command `git reset --hard 22e2458b77519e8eb8463170c1a1fe4bab105f3e` in directory /var/www/apps/fupifarvandet.dk/shared/bundle/ruby/1.9.1/bundler/gems/compass-22e2458b7751 has failed. 
** [out :: fupifarvandet.dk] If this error persists you could try removing the cache directory '/var/www/apps/fupifarvandet.dk/shared/bundle/ruby/1.9.1/cache/bundler/git/compass-dcbe0c41f22c777e90babfa80d61f78dfdea41b2' 

這是從我Gemfile

gem 'compass', git: 'git://github.com/chriseppstein/compass.git', branch: 'rails31' 

什麼辦法呢?

回答

2

這是因爲在github上沒有rails3.1分支。嘗試gem 'compass', '~> 0.12.alpha'