0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-12 17:41:53 -05:00

path bug fixed

This commit is contained in:
Lunny Xiao 2014-06-26 21:39:27 +08:00
parent e1332c5239
commit 165e3e8f18

View file

@ -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
} }