Browse Source

path bug fixed

pull/267/head
Lunny Xiao 11 years ago
parent
commit
165e3e8f18
  1. 2
      models/repo.go

2
models/repo.go

@ -390,7 +390,7 @@ func CreateRepository(user *User, name, desc, lang, license string, private, mir
// extractGitBareZip extracts git-bare.zip to repository path. // extractGitBareZip extracts git-bare.zip to repository path.
func extractGitBareZip(repoPath string) error { func extractGitBareZip(repoPath string) error {
z, err := zip.Open(path.Join(setting.RepoRootPath, "git-bare.zip")) z, err := zip.Open(filepath.Join(setting.RepoRootPath, "git-bare.zip"))
if err != nil { if err != nil {
return err return err
} }

Loading…
Cancel
Save