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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Low
    • 6.8.1, 6.9.0
    • 5.5.2, 5.9.0, 5.15.1, 5.16.3
    • Git LFS, Smart Mirroring
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: