Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non release tags are protected from deletion. #2644

Closed
2 of 7 tasks
robwdwd opened this issue Oct 3, 2017 · 2 comments
Closed
2 of 7 tasks

Non release tags are protected from deletion. #2644

robwdwd opened this issue Oct 3, 2017 · 2 comments
Labels
Milestone

Comments

@robwdwd
Copy link

robwdwd commented Oct 3, 2017

  • Gitea version (or commit ref): 1.2.0+rc3-1-g4c9bf91
  • Git version: 2.11.0
  • Operating system: Ubuntu 16.10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When creating a local tag and pushing it to gitea it creates that tag as a release but if I want to then delete the remote tag it rejects even though this tag has not been used as a release when creating a release from the web UI. I can also not delete the tag/release from the web UI as you can do if you create a release within the web UI itself.


$ git tag test3
$ git push origin test3
Total 0 (delta 0), reused 0 (delta 0)
To server:user/test.git
 * [new tag]         test3 -> test3

$ git push --delete origin test3
remote: Gitea: branch refs/tags/test3 is protected from deletion
To server:user/test.git
 ! [remote rejected] test3 (pre-receive hook declined)
error: failed to push some refs to 'git@server:user/test.git'

Screenshots

@daviian
Copy link
Member

daviian commented Oct 3, 2017

Please test with latest changes on release/v1.2 branch. Should be solved with #2630

@lafriks lafriks added this to the 1.2.0 milestone Oct 4, 2017
@lafriks
Copy link
Member

lafriks commented Oct 5, 2017

Should be fixed with #2630. Please reopen if you still have issues

@lafriks lafriks closed this as completed Oct 5, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants