mirror of
https://github.com/go-gitea/gitea
synced 2024-10-19 20:10:10 +02:00
Update modules/repository/license.go
Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
parent
9178d90a5f
commit
093e71d4be
@ -189,6 +189,7 @@ func UpdateRepoLicensesByGitRepo(ctx context.Context, repo *repo_model.Repositor
|
||||
if gitRepo == nil {
|
||||
var err error
|
||||
gitRepo, err = git.OpenRepository(ctx, repo.RepoPath())
|
||||
defer gitRepo.close()
|
||||
if err != nil {
|
||||
return fmt.Errorf("OpenRepository: %w", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user