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

"Reject force push" plugin doesn't block tag moves

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 3.2.0
    • 3.1.3
    • None
    • RHEL6 server, JDK1.7
      Fedora 20 client

    Description

      (Taken from https://answers.atlassian.com/questions/315371/blocking-tag-moves-in-stash) :

      The "reject force push" plugin doesn't seem to work for tags, only branches. Starting with an empty repository, with the "reject force push" plugin enabled:

      echo "A" > file
      git add file; git commit -m 'add' file; git push
      git tag -a -m 'tag' test; git push --tags
      echo "B" > file
      git add file; git commit -m 'change' file; git push
      git tag -a -f -m 'tag2' test
      git push --tags --force # This should error, but doesn't
      git tag -a -f -m 'tag-back' test HEAD^ # Move the tag back to the original position
      git push --tags --force # This does error

      This also happens with the marketplace 'force field' plugin, so I don't know if this is a bug with the included plugin, or something else?

      Attachments

        Activity

          People

            jgorman James Gorman
            06fbb7509c24 Bradley Baetz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: