Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-21364

Detect submodules and adjust clone command

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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.

              Unassigned Unassigned
              7aa4f465dc7a Yawar Quadir Amin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: