|
|
@ -630,7 +630,7 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, opts C |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tmpDir := filepath.Join(os.TempDir(), "gogs-"+repo.Name+"-"+com.ToStr(time.Now().Nanosecond())) |
|
|
|
tmpDir := filepath.Join(os.TempDir(), "gogs-"+repo.Name+"-"+com.ToStr(time.Now().Nanosecond())) |
|
|
|
fmt.Println(tmpDir) |
|
|
|
|
|
|
|
// Initialize repository according to user's choice.
|
|
|
|
// Initialize repository according to user's choice.
|
|
|
|
if opts.AutoInit { |
|
|
|
if opts.AutoInit { |
|
|
|
os.MkdirAll(tmpDir, os.ModePerm) |
|
|
|
os.MkdirAll(tmpDir, os.ModePerm) |
|
|
|