mirror of
https://github.com/go-gitea/gitea
synced 2024-10-19 20:10:10 +02:00
allow not existed git repo
This commit is contained in:
parent
59198d3c31
commit
4a838adc5e
@ -272,7 +272,8 @@ func AddRepositoryLicenses(x *xorm.Engine) error {
|
||||
gitRepo, err := git.OpenRepository(git.DefaultContext, repoPath(repo.OwnerName, repo.Name))
|
||||
if err != nil {
|
||||
log.Error("Error whilst opening git repo for [%d]%s/%s. Error: %v", repo.ID, repo.OwnerName, repo.Name, err)
|
||||
return err
|
||||
// Allow git repo not exist
|
||||
continue
|
||||
}
|
||||
_, licenseFile, err := findLicenseFile(gitRepo, repo.DefaultBranch)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user