소스 검색

safe check

tags/v0.9.99
Unknwon 8 년 전
부모
커밋
67ced4aaca
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      models/migrations/migrations.go

+ 6
- 0
models/migrations/migrations.go 파일 보기

@@ -684,6 +684,12 @@ func cleanUpMigrateRepoInfo(x *xorm.Engine) (err error) {
}

configPath := filepath.Join(setting.RepoRootPath, user.LowerName, repo.LowerName+".git/config")

// In case repository file is somehow missing.
if !com.IsFile(configPath) {
continue
}

cfg, err := ini.Load(configPath)
if err != nil {
return fmt.Errorf("open config file: %v", err)

Loading…
취소
저장