summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-03 04:44:20 -0400
committerUnknwon <u@gogs.io>2015-09-03 04:44:20 -0400
commita7ee654646e0f40834066ee0ec173aa54c235b08 (patch)
tree3b702de084c0d0c293aae02b57cc755b7b90e06c /models/repo.go
parentb6131793dacc3e49411d6bf1ade6220221739dc1 (diff)
downloadgitea-a7ee654646e0f40834066ee0ec173aa54c235b08.tar.gz
gitea-a7ee654646e0f40834066ee0ec173aa54c235b08.zip
#1544 better tmp dir name for creating repo
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index 706bb90fa4..cda0c0b98a 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -610,8 +610,8 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, opts C
return err
}
- tmpDir := filepath.Join(os.TempDir(), "gogs", repo.Name, com.ToStr(time.Now().Nanosecond()))
-
+ tmpDir := filepath.Join(os.TempDir(), "gogs-"+repo.Name+"-"+com.ToStr(time.Now().Nanosecond()))
+ fmt.Println(tmpDir)
// Initialize repository according to user's choice.
if opts.AutoInit {
os.MkdirAll(tmpDir, os.ModePerm)