Explorar o código

path bug fixed

Lunny Xiao %!s(int64=10) %!d(string=hai) anos
pai
achega
165e3e8f18
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}