2

伙计们,我不知道为什么对 Heroku 的推动不起作用。有任何想法吗?

Fetching git://github.com/gregbell/active_admin.git
   fatal: Could not parse object '54fb71c5415f7b1a7aa0cdde680ee882fa3b2d6f'.
   Git error: command `git reset --hard 54fb71c5415f7b1a7aa0cdde680ee882fa3b2d6f`
   in directory
   /tmp/build_1660sx0l4npgk/vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-54fb71c5415f
   has failed.
   If this error persists you could try removing the cache directory
   '/tmp/build_1660sx0l4npgk/vendor/bundle/ruby/2.0.0/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca'
   Bundler Output: Fetching gem metadata from https://rubygems.org/..........
   Fetching gem metadata from https://rubygems.org/..
   Fetching git://github.com/justinfrench/formtastic.git
   Fetching git://github.com/josevalim/inherited_resources.git
   Fetching git://github.com/ernie/ransack.git
   Fetching git://github.com/gregbell/active_admin.git
   fatal: Could not parse object '54fb71c5415f7b1a7aa0cdde680ee882fa3b2d6f'.
   Git error: command `git reset --hard 54fb71c5415f7b1a7aa0cdde680ee882fa3b2d6f`
   in directory
   /tmp/build_1660sx0l4npgk/vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-54fb71c5415f
   has failed.
   If this error persists you could try removing the cache directory
   '/tmp/build_1660sx0l4npgk/vendor/bundle/ruby/2.0.0/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca'

!!无法通过 Bundler 安装 gem。!

!推送被拒绝,无法编译 Ruby/Rails 应用程序

4

1 回答 1

1

我今天遇到了这个错误,发现我的 Gemfile.lock 文件包含对您正在使用的同一提交的引用:

GIT
  remote: git://github.com/gregbell/active_admin.git
  revision: 54fb71c5415f7b1a7aa0cdde680ee882fa3b2d6f
  branch: rails4
  specs:
    activeadmin (0.6.0)
    ...

我不确定为什么该提交不再可用,但我能够使用 :ref 选项在我的 Gemfile 中指定一个:

gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4', ref: 'a9949c1524205928b18597f840e83478ba97c2ef'

对 Gemfile.lock 产生的更改:

GIT
 remote: git://github.com/gregbell/active_admin.git
 revision: a9949c1524205928b18597f840e83478ba97c2ef
 ref: a9949c1524205928b18597f840e83478ba97c2ef
 branch: rails4
 specs:
   activeadmin (0.6.0)
   ...

当直接从 Github 包含库时,这感觉像是一种更安全的控制方式。

于 2013-08-07T17:37:13.187 回答