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

Pushing a commit on a restricted branching with a tag allows the push to go through partially. (BB-15735)

    XMLWordPrintable

Details

    Description

      Assume a user is not allowed to push to a specific branch. That user made a new commit on that branch in a local repository, and added a tag onto the commit.

      Pushing the tag will cause the commit to be pushed as well, though the commit wouldn't show in the history of the branch, but rather it will show when the specific commit URL is searched.

      Steps to reproduce:

      1. Create new branch (and lock it on bitbucket).
        With a user who is not allowed to push to that branch:
      2. Make a commit
      3. Add tag on that commit
      4. Push to bitbucket
      5. Go the url for that specific commit

      It will show in a specific commit URL:
      https://bitbucket.org/username/repositoryname/commits/xxxxxxx

      But it won't show up in the branch commit history log:
      https://bitbucket.org/digipolisgent/username/repositoryname/commits/branch/branchname

      Attachments

        Activity

          People

            Unassigned Unassigned
            gkoh Gideon Koh (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: