forked from gitea/gitea
1
0
Fork 0

Check for tag, not just new tag (#10663)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2020-03-07 23:27:11 -06:00 committed by GitHub
parent 4901096842
commit b40428a50a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,7 @@ func createCommitRepoActions(repo *models.Repository, gitRepo *git.Repository, o
return nil, fmt.Errorf("Old and new revisions are both %s", git.EmptySHA)
}
var commits = &repo_module.PushCommits{}
if opts.IsNewTag() {
if opts.IsTag() {
// If is tag reference
tagName := opts.TagName()
if opts.IsDelRef() {