]> source.dussan.org Git - gitea.git/commitdiff
Bug fix
authorUnknown <joe2010xtmf@163.com>
Wed, 12 Mar 2014 02:09:33 +0000 (22:09 -0400)
committerUnknown <joe2010xtmf@163.com>
Wed, 12 Mar 2014 02:09:33 +0000 (22:09 -0400)
models/repo.go

index 810f49b823b2a2047abf518532fc679a961a93ef..31c2ae63614222ea7bd1d819db91c425d76cea27 100644 (file)
@@ -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()