Skip to content

Commit 78728a6

Browse files
committed
Check for tag, not just new tag
Signed-off-by: jolheiser <[email protected]>
1 parent 4901096 commit 78728a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/repofiles/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ func createCommitRepoActions(repo *models.Repository, gitRepo *git.Repository, o
698698
return nil, fmt.Errorf("Old and new revisions are both %s", git.EmptySHA)
699699
}
700700
var commits = &repo_module.PushCommits{}
701-
if opts.IsNewTag() {
701+
if opts.IsTag() {
702702
// If is tag reference
703703
tagName := opts.TagName()
704704
if opts.IsDelRef() {

0 commit comments

Comments
 (0)