summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-29 16:07:02 +0800
committerUnknwon <u@gogs.io>2015-08-29 16:07:02 +0800
commita3683ca5d6e64b74eb4b44d4cab2e7469f343529 (patch)
tree36e81aa4dd83a6bf34ecbf9e04529c92f612232e /models
parent9ef063cbb0e3d9425be7de17b9c8df77f2ffea02 (diff)
downloadgitea-a3683ca5d6e64b74eb4b44d4cab2e7469f343529.tar.gz
gitea-a3683ca5d6e64b74eb4b44d4cab2e7469f343529.zip
#1544 Creating new repository fails occasionally
Diffstat (limited to 'models')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 9934ec5ab0..3aa7b5e47b 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -600,7 +600,7 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, opts C
return err
}
- tmpDir := filepath.Join(os.TempDir(), com.ToStr(time.Now().Nanosecond()))
+ tmpDir := filepath.Join(os.TempDir(), "gogs", repo.Name, com.ToStr(time.Now().Nanosecond()))
// Initialize repository according to user's choice.
if opts.AutoInit {