ruby - 在 .gitmodules 中找不到路径 'sinatra-bootstrap' 的子模块映射

标签 ruby git twitter-bootstrap amazon-web-services sinatra

当我尝试在日志中部署到 AWS 时,我收到以下错误:

[Wed, 13 Nov 2013 15:32:35 +0000] ERROR: deploy[/srv/www/rn] (/opt/aws/opsworks/releases/20131106095250_142/cookbooks/deploy/definitions/opsworks_deploy.rb:63:in `from_file') had an error:

git submodule init && git submodule update returned 1, expected 0

---- Begin output of git submodule init && git submodule update ----

STDOUT: STDERR: No submodule mapping found in .gitmodules for path 'sinatra-bootstrap'

---- End output of git submodule init && git submodule update ----

最佳答案

有可能 index special entry representing the submodule SHA1 sinatra-bootstrap 可以替换为普通的旧文件夹。

尝试从索引中删除它:

git rm --cached `sinatra-bootstrap` 
git submodule update --init

如果您的 .gitmodules 中没有条目并且想要一个用于 sinatra-bootstrap 路径,那么您需要先正确添加它

git submodule add /url/for/sinatra-bootstrap sinatra-bootstrap

关于ruby - 在 .gitmodules 中找不到路径 'sinatra-bootstrap' 的子模块映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20168942/

相关文章:

git - 将一个 git 存储库的问题链接到另一个存储库的提交

javascript - 带旋转木马的 Bootstrap 画廊缩略图

html - Rails button_to 与 HTML 按钮标签

ruby-on-rails - "Invalid Credentials"在 Facebook 上授权应用程序后(使用 Devise,omniauth :facebook)

ruby-on-rails - 如何添加不包含引号值的 Rails 表单助手 HTML 属性?

linux - 将 Docker 镜像中的用户切换为非 root 用户

ruby - RVM "ERROR: Unable to checkout branch ."单用户

javascript - 工具提示 Bootstrap 无法在运行时显示在边缘

css - Bootstrap 导航向左推/向右推

ruby - 如何在 Mongoid 中获取模型的所有列名