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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 3.2.0
    • Affects Version/s: 3.1.3
    • None
    • Environment:

      RHEL6 server, JDK1.7
      Fedora 20 client

      (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?

            Assignee:
            James Gorman
            Reporter:
            Bradley Baetz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: