mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:15:43 +01:00
Check for tag, not just new tag (#10663)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
4901096842
commit
b40428a50a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
return nil, fmt.Errorf("Old and new revisions are both %s", git.EmptySHA)
|
||||||
}
|
}
|
||||||
var commits = &repo_module.PushCommits{}
|
var commits = &repo_module.PushCommits{}
|
||||||
if opts.IsNewTag() {
|
if opts.IsTag() {
|
||||||
// If is tag reference
|
// If is tag reference
|
||||||
tagName := opts.TagName()
|
tagName := opts.TagName()
|
||||||
if opts.IsDelRef() {
|
if opts.IsDelRef() {
|
||||||
|
|
Loading…
Reference in a new issue