diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-11 22:09:33 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-11 22:09:33 -0400 |
commit | 0b5f6b176feaacd33ec2dd4eff1fff6dc67d7376 (patch) | |
tree | 6e3529392c2181d80970d2aa4ab88d471b7f3bda /models | |
parent | c2e7e93e0c596cf8fd92ba0de57027c915674a51 (diff) | |
download | gitea-0b5f6b176feaacd33ec2dd4eff1fff6dc67d7376.tar.gz gitea-0b5f6b176feaacd33ec2dd4eff1fff6dc67d7376.zip |
Bug fix
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 810f49b823..31c2ae6361 100644 --- a/models/repo.go +++ b/models/repo.go @@ -153,7 +153,7 @@ func initRepository(f string, user *User, repo *Repository, initReadme bool, rep fileName["license"] = "LICENSE" } - workdir := os.TempDir() + fmt.Sprintf("%d", time.Now().Nanosecond()) + workdir := filepath.Join(os.TempDir(), fmt.Sprintf("%d", time.Now().Nanosecond())) os.MkdirAll(workdir, os.ModePerm) sig := user.NewGitSig() |