Working with git submodules (BB-7717)

Issue #6527 duplicate
Ricardo Casares
created an issue

When I add a submodule in my repo like this:

git submodule add https://user@bitbucket.org/user/submodulerepo.git

In my .gitmodules file the url parameter ends with a trailing .git extension, wich causes clicking in submodule link in the source browser in bitbucket to end in a 404 page.

Adding the submodule without the .git extension solves this problem

git submodule add https://user@bitbucket.org/user/submodulerepo

I don't know if this is the default behaviour or if it is a bug. I used to work with github and when I open the URL github.com/user/repo.git it redirects me to github.com/user/repo

Cheers!

Comments (4)

  1. Log in to comment