소스 검색

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
 	}