Fix NPE on try to get tag reference via API (#18245)
* fix npe * rm gitRepo from Tag
This commit is contained in:
parent
67d73882f4
commit
ff00b8688b
9 changed files with 7 additions and 14 deletions
|
@ -103,9 +103,8 @@ func (repo *Repository) getCommitFromBatchReader(rd *bufio.Reader, id SHA1) (*Co
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
tag.repo = repo
|
||||
|
||||
commit, err := tag.Commit()
|
||||
commit, err := tag.Commit(repo)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue