Browse Source

Bug fix

for-closed-social
Unknown 10 years ago
parent
commit
0b5f6b176f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/repo.go

+ 1
- 1
models/repo.go View 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()

Loading…
Cancel
Save