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

If a PR contains a commit with a submodule rename, then the diff is not showing in Bitbucket UI

    XMLWordPrintable

Details

    Description

      Summary

      If a PR contains a commit with a submodule rename, then the diff is not showing in Bitbucket UI

      Steps to Reproduce

      #!python
      
      $ git init
      $ echo 'hello world' > foo
      $ git add foo
      $ git commit -m 'initial commit'
      $ git submodule add url_of_another_repo
      $ git commit -m 'add submodule'
      $ git remote add origin url_of_repo_in_bitbucket
      $ git push origin master
      
      $ git checkout -b branch1
      $ git mv name_of_submodule name_of_submodule2
      $ git commit -m 'rename submodule'
      $ git push --set-upstream origin branch1
      

      Create a PR from branch1 to master branch in Bitbucket

      Expected Results

      The PR shows the diff in the Overview page

      Actual Results

      An error is shown:
      and the diff is not loading

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tboudale Theodora Boudale
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: