forked from forgejo/forgejo
#3589 LoadRepoConfig after ORM is initialized
This commit is contained in:
parent
c50d59874d
commit
6da55159a2
5 changed files with 6 additions and 9 deletions
|
@ -613,10 +613,6 @@ func MigrateRepository(u *User, opts MigrateRepoOptions) (*Repository, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Clone to temprory path and do the init commit.
|
||||
tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("%d", time.Now().Nanosecond()))
|
||||
os.MkdirAll(tmpDir, os.ModePerm)
|
||||
|
||||
repoPath := RepoPath(u.Name, opts.Name)
|
||||
wikiPath := WikiPath(u.Name, opts.Name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue