diff options
author | 6543 <6543@obermui.de> | 2022-01-12 21:37:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-12 20:37:46 +0000 |
commit | ff00b8688bf2a918a975c49081868815919b1793 (patch) | |
tree | f9be8a9eb214a95f7c7512fc5da4ae9f04497aad /modules/git/repo_tree_nogogit.go | |
parent | 67d73882f4ade433fa8292784a5f5d0b8df50cb6 (diff) | |
download | gitea-ff00b8688bf2a918a975c49081868815919b1793.tar.gz gitea-ff00b8688bf2a918a975c49081868815919b1793.zip |
Fix NPE on try to get tag reference via API (#18245)
* fix npe
* rm gitRepo from Tag
Diffstat (limited to 'modules/git/repo_tree_nogogit.go')
-rw-r--r-- | modules/git/repo_tree_nogogit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_tree_nogogit.go b/modules/git/repo_tree_nogogit.go index 56a4a732e0..00009c997d 100644 --- a/modules/git/repo_tree_nogogit.go +++ b/modules/git/repo_tree_nogogit.go @@ -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 } |