1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-18 00:13:57 +01:00
This commit is contained in:
Unknwon 2015-08-08 00:41:09 +08:00
parent 492d2dc112
commit 45adb9b7a3

@ -456,6 +456,7 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, initRe
// Clone to temprory path and do the init commit.
tmpDir := filepath.Join(os.TempDir(), com.ToStr(time.Now().Nanosecond()))
os.MkdirAll(tmpDir, os.ModePerm)
defer os.RemoveAll(tmpDir)
_, stderr, err = process.Exec(
fmt.Sprintf("initRepository(git clone): %s", repoPath),