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 /services | |
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 'services')
-rw-r--r-- | services/repository/push.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/push.go b/services/repository/push.go index fe3f32f839..11854ccb39 100644 --- a/services/repository/push.go +++ b/services/repository/push.go @@ -294,7 +294,7 @@ func pushUpdateAddTags(ctx context.Context, repo *repo_model.Repository, gitRepo if err != nil { return fmt.Errorf("GetTag: %v", err) } - commit, err := tag.Commit() + commit, err := tag.Commit(gitRepo) if err != nil { return fmt.Errorf("Commit: %v", err) } |