Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-11504

When Cloning from a Mirror via SSH, LFS files are Retrieved from Upstream

    XMLWordPrintable

    Details

      Description

      Summary

      When cloning/pulling via SSH from a mirror, all requests for LFS files get redirected to the Upstream rather than simply converting to an HTTP(s) URL of the Mirror itself. HTTP(s) on the other hand is not affected and successfully retrieves all content from the mirror without the need to contact the upstream.

      Steps to Reproduce

      Add a Mirror to your DC instance and sync a repo with LFS files. Attempt to clone the full repo from the mirror with "CURL_VERBOSE=1" and you will see the connection to the upstream

      Expected Results

      All content, LFS included, should be downloaded from the mirror.

      Actual Results

      Regular Git content is retrieved from the Mirror but once complete, LFS files are then retrieved from upstream.

      Workaround

      There is no workaround for SSH but you can use HTTP instead to retrieve all files from the Mirror.

        Attachments

        1. mirror-http-clone
          11 kB
        2. mirror-ssh-clone
          3 kB

          Issue Links

            Activity

              People

              Assignee:
              rfriend rikf
              Reporter:
              miwalker Michael Walker
              Votes:
              9 Vote for this issue
              Watchers:
              20 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: