No submodule mapping found in.gitmodules for path*** when trying to push to heroku

Asked 2 years ago, Updated 2 years ago, 137 views

Hello.

When I try to upload the rails application to heroku, I get the following error:

No submodule mapping found in.gitmodules for path'app/assets/stylesheets/includes/sanitizes.css'


Remove the above path from cache management and remove the submodule in .git/config I tried, but it didn't go away... sanitize.css is a folder with sanitize.scss and surrounding files in it.

What should I do to cure it?Please help me.
Thank you for your cooperation.

ruby-on-rails git heroku

2022-09-30 20:55

1 Answers

Perhaps the app/assets/stylesheets/includes/sanitizes.css itself or any of the directories leading up to it is a git repository containing .git.

You may need to delete the .git of that repository to remove it from the git repository, or use the git submodule to register the git repository as a submodule.


2022-09-30 20:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.