Browse Source

fix #1331

tags/v1.2.0-rc1
Unknwon 10 years ago
parent
commit
dea7dc1a30
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/repo.go

+ 1
- 0
models/repo.go View File

@@ -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),


Loading…
Cancel
Save