Skip to content

Commit 1a8ba15

Browse files
Merge branch 'master' into k8s_disable_ssl
2 parents 734e98d + 5d3c31a commit 1a8ba15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/travis/model/repository.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ class Repository < Travis::Model
7474
scope :by_slug, ->(slug) {
7575
owner_name, repo_name = slug.split('/')
7676
without_invalidated.where(
77-
"LOWER(repositories.owner_name) = ? AND LOWER(repositories.name) = ?", owner_name.downcase, repo_name.downcase
77+
"(LOWER(repositories.owner_name) = ? AND LOWER(repositories.name) = ?) OR LOWER(vcs_slug) = ?",
78+
owner_name.downcase, repo_name.downcase, "#{slug.downcase}"
7879
).order('id DESC')
7980
}
8081
scope :search, ->(query) {

0 commit comments

Comments
 (0)