Support Forums

Netlify is looking for .gitmodules file which has been deleted

7:21:01 PM: Waiting for other deploys from your team to complete
7:21:03 PM: Build ready to start
7:21:04 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
7:21:04 PM: build-image tag: v3.4.1
7:21:04 PM: buildbot version: 0a44c930054be748eff0c581d346282fece89cc0
7:21:05 PM: Building without cache
7:21:05 PM: Starting to prepare the repo for build
7:21:05 PM: No cached dependencies found. Cloning fresh repo
7:21:05 PM: git clone https://github.com/GerBreOwn/myraspi.me
7:21:08 PM: Preparing Git Reference refs/heads/main
7:21:08 PM: Error checking out submodules: fatal: No url found for submodule path ‘themes/hugo-universal-theme’ in .gitmodules
7:21:08 PM: Failing build: Failed to prepare repo
7:21:08 PM: Failed during stage ‘preparing repo’: Error checking out submodules: fatal: No url found for submodule path ‘themes/hugo-universal-theme’ in .gitmodules: exit status 128
7:21:08 PM: Finished processing build request in 3.808716482s

There is an invisible submodule in your repo that you probably added and removed however the reference to it is still there.

I had this issue a while ago and it was a pain! However, I think this was the post that helped me: https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule/21211232#21211232

There was a lot of messing around with deleting and commiting, I even deleted my .git entirely and it didnt work! :smiley:

1 Like

same issue.Netlify is looking for.gitmodules file which has been deleted19

Hi @amanda6215,

If you can share your repo, we can investigate it accordingly.