Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to push to heroku after removing submodule

I removed a submodule from my code, when I try to push to heroku 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's buildpack: https://github.com/heroku/heroku-buildpack-multi.git

With this .buildpacks file:

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? Do I just need to delete this app and start a new one (this is obviously very undesirable).

like image 233
Paul Tyng Avatar asked Jul 21 '15 17:07

Paul Tyng


1 Answers

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

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

And then you can deploy again:

$ git push ....
like image 196
Paul Tyng Avatar answered Oct 31 '22 01:10

Paul Tyng