"fatal: URL error for submodule error" when trying to initialize submodule

The name of the repository that I use as a submodule in my current repository is droid-media-lib, but the name of the directory in which this submodule is placed is equal library, so my .gitmodules look like this:

[submodule "droid-media-lib"]
        path = library/
        url = https://github.com/talview/droid-media-lib.git

Now when I try to clone this project on another computer and do

git submodule update --init

I get this error

fatal: No url found for submodule path 'library' in .gitmodules

What I have tried so far:

  • I tried changing the submodule "droid-media-lib" to the submodule "library", still getting the same error.

  • droid-media-lib , path = droid-media-lib/", , , "" , " , " "?

+4
1

.

path=library/

- , :

path=library
+4

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


All Articles