diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-06-26 21:39:27 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-06-26 21:39:27 +0800 |
commit | 165e3e8f18bb7d38722d0c836ddbf8c95023cf67 (patch) | |
tree | faec590a4990953d71ea322367d27775eed876c5 /models | |
parent | e1332c52399e5dae3a282697bd265121be61a086 (diff) | |
download | gitea-165e3e8f18bb7d38722d0c836ddbf8c95023cf67.tar.gz gitea-165e3e8f18bb7d38722d0c836ddbf8c95023cf67.zip |
path bug fixed
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index d13c349f11..600827344a 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 } |