1

When I try to deploy to AWS in the log I receive the following error:

[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 ----
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
csakon
  • 581
  • 2
  • 6
  • 23

2 Answers2

3

It is possible that the index special entry representing the submodule SHA1 for sinatra-bootstrap could have been replaced with a plain old folder instead.

Try to remove it from the index:

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

If have no entry in your .gitmodules and want one for a sinatra-bootstrap path, then you will need to properly add it first

git submodule add /url/for/sinatra-bootstrap sinatra-bootstrap
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

This happens because in your local repo there is a folder that has an .git dir, a so called submodule(a repo inside your repo)

try this: No submodule mapping found in .gitmodules for path and missing .gitmodules file

Community
  • 1
  • 1
Julio Marins
  • 10,039
  • 8
  • 48
  • 54