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

git submodule link on Bitbucket sources page doesn't work when url in .gitmodules is relative

    • 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.

      Problem:

      As a user, when I change the 'url' field in my repositories .gitmodules file to be relative, rather than absolute, the link to the associated submodule within the Bitbucket source view page is no longer active and is replaced by a text representation. Attached screenshots, and here is a diff as an example of the .gitmodules change to stimulate the issue:

      #!diff
      
      [submodule "communis"]
              path = communis
      -       url = git@bitbucket.org:kanetoadstudios/communis.git
      +       url = ../communis.git
      

      Suggested solution:

      Whatever parses the .gitmodules file, for the purposes of presenting the user with a link to the associated submodule, should be modified to understand relative paths and behave in the same way as it would if the 'url' field was absolute.
      NOTE: If there is a problem resolving the relative link, the current operation is acceptable, but I don't believe there is a problem in the case I'm reporting as git performs a recursive clone quite happily with the relative url I supplied. See gitmodules documentation for info.

        1. absolute_url.png
          absolute_url.png
          9 kB
        2. relative_url.png
          relative_url.png
          9 kB

              Unassigned Unassigned
              da51317bba9f ryan_surrey
              Votes:
              11 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: