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

Asked 1 years ago, Updated 1 years ago, 123 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.