Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I get "no url found for submodule path" by using sourcetree?

Tags:

git

When I tried to clone project, why I get the error like this :

enter image description here

It was said that no url found for submodule path in .gitmodules

Anyway, where is the location file of .gitmodules? How to fix the error? Thanks in advance

like image 967
r34627673 Avatar asked Apr 05 '17 14:04

r34627673


1 Answers

As the Git docs says (emphasis mine):

The .gitmodules file, located in the top-level directory of a Git working tree, is a text file with a syntax matching the requirements of git-config.

So if your repository is in C:\Users\Asus\Documents\PDA, the file should be in C:\Users\Asus\Documents\PDA\.gitmodules.

Submodules have a path an a URL; it appears your file defines a submodule without URL. You may want to edit the file to either remove the submodule or add a URL.

like image 146
bfontaine Avatar answered Sep 30 '22 19:09

bfontaine