-
Suggestion
-
Resolution: Won't Fix
-
None
Currently, when we browse to a repository page, and click the 'Clone' button in the top-right corner, we get a dialog box with a 'git clone' command that we can copy to the clipboard. This is convenient.
However, if the repository has any submodules, the basic clone command does not initialize them properly. The best way to clone in that case is using the `--recurse-submodules` flag.
When a repository has submodules, Bitbucket should detect this and adjust the clone command accordingly to `git clone --recurse-submodules path`. It's easy to detect if there are submodules because in that case there will be a `.gitmodules` file in the project root.