My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1182: cannot delete remote tags
4 people starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 1091
Owner:  ----
Closed:  Nov 2011


Sign in to add a comment
 
Reported by ebow...@gilt.com, Nov 12, 2011
Affected Version: 2.2.1

What steps will reproduce the problem?
1. Create an annotated tag: git tag -a 0.3.0
2. Push it to gerrit: git push --tags
3. Delete tag locally: git tag -d 0.3.0
4. Try to delete remotely:  git push origin :refs/tags/0.3.0

What is the expected output? What do you see instead?

I expect the tag to be deleted.  Instead I get an error:

To ssh://gerrit/commons.git
 ! [remote rejected] 0.3.0 (prohibited by Gerrit)
error: failed to push some refs to 'ssh://gerrit/commons.git'


Please provide any additional information below.

Searching the web using Google returns some advice for a previous version that no longer seems to work. We've tried every permission, we think, but cannot get remote tag deletion to work.

Thanks!
Nov 14, 2011
Project Member #1 edwin.ke...@gmail.com
In order to delete a tag you have to assign the 'Push' access right on 'refs/tags/*' with the 'Force Push' flag being set.
Nov 14, 2011
#2 ebow...@gilt.com
Thanks!
Nov 14, 2011
Project Member #3 edwin.ke...@gmail.com
So there is no need to fix anything, except improving the access rights documentation. There is another issue to deal with this ( issue 1091 ).
Status: Duplicate
Mergedinto: 1091
Sign in to add a comment

Powered by Google Project Hosting