1

我正在尝试在引擎场上部署一个应用程序。我正在使用 rails 2.3.5 和 ruby​​ 1.8.7

当我尝试部署它时,

~> Deploying revision 481f05e emergency commit
:: running git checkout -q '481f05e42f3e13b5eda7e598a1b797b031c9ca5e'
:: running git submodule sync
Synchronizing submodule url for ''
:: running git submodule update --init

No submodule mapping found in .gitmodules for path 'school'
No submodule mapping found in .gitmodules for path 'school'
*** [Error] Git could not checkout (481f05e42f3e13b5eda7e598a1b797b031c9ca5e) ***

是 git submodule sync 导致问题吗?

我的存储库中没有任何子模块。

4

2 回答 2

1

我的存储库中没有任何子模块。

这意味着您不应该.gitmodules在您的存储库中看到任何文件。
如果有,这意味着您以某种方式声明了一个子模块(在这种情况下,您可能想要删除它)。

如果没有任何 .gitmodules 文件,那么学校路径中的某些内容会使部署脚本认为它是一个子模块,并尝试访问.gitmodules父 repo 的(不存在的)文件。
可能school.git目录吗?

于 2011-07-21T05:57:14.327 回答
1

我也遇到过这种情况,但有不同的解决方案。简单地说,gemfile 引用了 github 上的一个版本,但我未能在线推送最新的提交。因此,一旦我确保我的所有子存储库都是最新的,它就能够结帐。

于 2012-02-29T19:02:03.870 回答