From 165e3e8f18bb7d38722d0c836ddbf8c95023cf67 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 26 Jun 2014 21:39:27 +0800 Subject: [PATCH] path bug fixed --- models/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo.go b/models/repo.go index d13c349f1..600827344 100644 --- a/models/repo.go +++ b/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. 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 { return err }