summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-02-20 17:52:07 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-02-20 17:52:07 +0800
commit104aa23a9ed5ac01377eda1e421f1f3f43163c99 (patch)
tree9801de9a55b7dd720acdf94294ab8bd41092dd74 /models/repo.go
parentfee3bd0a93ac810c53bf083e38f3c5de61ef1065 (diff)
downloadgitea-104aa23a9ed5ac01377eda1e421f1f3f43163c99.tar.gz
gitea-104aa23a9ed5ac01377eda1e421f1f3f43163c99.zip
improved ssh supports
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 27807303f9..527b7a91de 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -34,7 +34,7 @@ func IsRepositoryExist(user *User, reposName string) (bool, error) {
if err != nil {
return has, err
}
- s, err := os.Stat(filepath.Join(RepoRootPath, user.Name, reposName))
+ s, err := os.Stat(RepoPath(user.Name, reposName))
if err != nil {
return false, nil
}