(e Engine, u *User, repoName string)
| 727 | } |
| 728 | |
| 729 | func isRepositoryExist(e Engine, u *User, repoName string) (bool, error) { |
| 730 | has, err := e.Get(&Repository{ |
| 731 | OwnerID: u.ID, |
| 732 | LowerName: strings.ToLower(repoName), |
| 733 | }) |
| 734 | return has && com.IsDir(RepoPath(u.Name, repoName)), err |
| 735 | } |
| 736 | |
| 737 | // IsRepositoryExist returns true if the repository with given name under user has already existed. |
| 738 | func IsRepositoryExist(u *User, repoName string) (bool, error) { |
no test coverage detected