Failed to click on the hero after removing the submodule

I removed the submodule from my code, when I try to click on the hero now, I get:

remote: Git submodules detected, installing:
remote: No submodule mapping found in .gitmodules for path 'submodule/path'
remote:
remote: ! Push rejected, submodule install failed
remote:

I am using Heroku buildpack: https://github.com/heroku/heroku-buildpack-multi.git

With this .buildpacksfile:

https://github.com/ello/heroku-buildpack-imagemagick-cedar-14
https://github.com/heroku/heroku-buildpack-ruby.git

Is there something I can do to fix this? Is it just necessary to remove this application and launch a new one (this is clearly undesirable).

+4
source share
1 answer

You can use the heroku-repo plugin to reset the repo for the application:

$ heroku plugins:install https://github.com/heroku/heroku-repo.git
$ heroku repo:reset -a APP

And then you can deploy again:

$ git push ....
+9
source

Source: https://habr.com/ru/post/1598932/


All Articles