aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repofiles
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-03-07 23:27:11 -0600
committerGitHub <noreply@github.com>2020-03-08 13:27:11 +0800
commitb40428a50add017d3977f3069c517050044aeb02 (patch)
tree8d88d1afd92d8094bf2d97afe7e8d3c44280db48 /modules/repofiles
parent4901096842bb5fa4303cb5ddcf30f6d3ea38d79f (diff)
downloadgitea-b40428a50add017d3977f3069c517050044aeb02.tar.gz
gitea-b40428a50add017d3977f3069c517050044aeb02.zip
Check for tag, not just new tag (#10663)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'modules/repofiles')
-rw-r--r--modules/repofiles/update.go2
1 files changed, 1 insertions, 1 deletions
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() {