aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-09-02 23:18:37 -0400
committerUnknwon <u@gogs.io>2016-09-02 23:18:37 -0400
commit6da55159a2af518f5d7e5cafbb50c356d9e96383 (patch)
tree2785b7c2f4114ce678555d64763699758b688890 /models/repo.go
parentc50d59874d88150081f5fec6b385cfdf4eb3ed84 (diff)
downloadgitea-6da55159a2af518f5d7e5cafbb50c356d9e96383.tar.gz
gitea-6da55159a2af518f5d7e5cafbb50c356d9e96383.zip
#3589 LoadRepoConfig after ORM is initialized
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/models/repo.go b/models/repo.go
index 932a0e9f2f..010c9fad60 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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)