I am trying to update the submodules of this git repositary but I keep getting a fatal errors:
[root@iptlock ProdigyView]# git submodule update --recursive
Cloni
Adding new answer instead of edit for greater visibility to anyone experience the same problem I was...
I had the exact opposite. Private Bitbucket repo & submodule for work. Always got this error...
fatal: repository 'http://bitbucket.org/companyname/submodule-repo-name.git' does not exist
fatal: clone of 'http://bitbucket.org/companyname/submodule-repo-name.git' into submodule path
'/Users/me/path/to/repo-using-submodule/folder' failed
Failed to clone 'submodule/folder'. Retry scheduled
fatal: repository 'http://bitbucket.org/companyname/submodule-repo-name.git' does not exist
fatal: clone of 'http://bitbucket.org/companyname/submodule-repo-name.git' into submodule path
'/Users/me/path/to/repo-using-submodule/folder' failed
Failed to clone 'submodule/folder' a second time, aborting
I had to manually go into my .git/config file and update this:
[submodule "submodule-name"]
url = https://bitbucket.org/companyname/submodule-repo.git
with this:
[submodule "submodule-name"]
url = git@bitbucket.org:companyname/submodule-repo.git
Not sure how to set this up so me and all my coworkers can use the submodule without tweaking, but got me past my several month long struggle with this.