improved ssh supports

This commit is contained in:
Lunny Xiao 2014-02-20 17:52:07 +08:00
parent fee3bd0a93
commit 104aa23a9e
3 changed files with 6 additions and 6 deletions

View file

@ -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
}