-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 3.1.3
-
Component/s: Repository - Branches / Tags
-
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?