From b40428a50add017d3977f3069c517050044aeb02 Mon Sep 17 00:00:00 2001
From: John Olheiser <john.olheiser@gmail.com>
Date: Sat, 7 Mar 2020 23:27:11 -0600
Subject: [PATCH] Check for tag, not just new tag (#10663)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
---
 modules/repofiles/update.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/repofiles/update.go b/modules/repofiles/update.go
index 4dfa4db0b1..e2aafb567d 100644
--- a/modules/repofiles/update.go
+++ b/modules/repofiles/update.go
@@ -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() {