Fix NPE on try to get tag reference via API (#18245)

* fix npe

* rm gitRepo from Tag
This commit is contained in:
6543 2022-01-12 21:37:46 +01:00 committed by GitHub
parent 67d73882f4
commit ff00b8688b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 7 additions and 14 deletions

View file

@ -34,7 +34,7 @@ func (repo *Repository) getTree(id SHA1) (*Tree, error) {
if err != nil {
return nil, err
}
commit, err := tag.Commit()
commit, err := tag.Commit(repo)
if err != nil {
return nil, err
}