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

Repository rename detection incorrectly warns that repository has moved if .git is missing from clone URL

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 5.0.1
    • 5.0.0
    • Repositories
    • None

      In Bitbucket 5.0.0, rename detection for repositories and projects was added. This rename detection writes a warning to git clients using the old clone URLs.

      The detection generates a false positive warning when using a clone URL without the `.git` suffix:

      $ git push origin HEAD:some-branch
      Counting objects: 4, done.
      Delta compression using up to 16 threads.
      Compressing objects: 100% (4/4), done.
      Writing objects: 100% (4/4), 471 bytes | 0 bytes/s, done.
      Total 4 (delta 3), reused 0 (delta 0)
      remote: The repository has moved, please update your configuration:
      remote:   ssh://git@bitbucket.company.com:7999/project/repo-slug.git
      ...
      $ git remote -v
      origin  ssh://git@bitbucket.company.com:7999/project/repo-slug (fetch)
      origin  ssh://git@bitbucket.company.com:7999/project/repo-slug (push)
      

            [BSERV-9731] Repository rename detection incorrectly warns that repository has moved if .git is missing from clone URL

            Owen made changes -
            Workflow Original: Stash Workflow - Restricted [ 2014947 ] New: JAC Bug Workflow v3 [ 3137042 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Michael Heemskerk (Inactive) made changes -
            Fix Version/s New: 5.0.1 [ 71899 ]
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Closed [ 6 ]
            Michael Heemskerk (Inactive) made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            Michael Heemskerk (Inactive) made changes -
            Description New: In Bitbucket 5.0.0, rename detection for repositories and projects was added. This rename detection writes a warning to git clients using the old clone URLs.

            The detection generates a false positive warning when using a clone URL without the `.git` suffix:

            {noformat}
            $ git push origin HEAD:some-branch
            Counting objects: 4, done.
            Delta compression using up to 16 threads.
            Compressing objects: 100% (4/4), done.
            Writing objects: 100% (4/4), 471 bytes | 0 bytes/s, done.
            Total 4 (delta 3), reused 0 (delta 0)
            remote: The repository has moved, please update your configuration:
            remote: ssh://git@bitbucket.company.com:7999/project/repo-slug.git
            ...
            $ git remote -v
            origin ssh://git@bitbucket.company.com:7999/project/repo-slug (fetch)
            origin ssh://git@bitbucket.company.com:7999/project/repo-slug (push)
            {noformat}
            Michael Heemskerk (Inactive) made changes -
            Affects Version/s New: 5.0.0 [ 66696 ]
            Michael Heemskerk (Inactive) made changes -
            Component/s New: Repositories [ 17699 ]
            Michael Heemskerk (Inactive) made changes -
            Assignee New: Michael Heemskerk [ mheemskerk ]
            Michael Heemskerk (Inactive) made changes -
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]
            Michael Heemskerk (Inactive) created issue -

              mheemskerk Michael Heemskerk (Inactive)
              mheemskerk Michael Heemskerk (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: