Browse Source

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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
mj
John Olheiser 3 years ago
committed by GitHub
parent
commit
b40428a50a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/repofiles/update.go

2
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() {

Loading…
Cancel
Save