Parcourir la source

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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tags/v1.12.0-dev
John Olheiser il y a 4 ans
Parent
révision
b40428a50a
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      modules/repofiles/update.go

+ 1
- 1
modules/repofiles/update.go Voir le fichier

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

Chargement…
Annuler
Enregistrer