瀏覽代碼

path bug fixed

Lunny Xiao 10 年之前
父節點
當前提交
165e3e8f18
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/repo.go

+ 1 - 1
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
 	}