diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-04 18:09:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-04 18:09:33 +0300 |
commit | bf6d126a58a66a11b2e4b9de89986174a1885105 (patch) | |
tree | bf2912b22073ed86969a56935d81cae0b73e710b /app/models/repository.rb | |
parent | 7928b47c8e06c1ac3f63d321a73dd527aea4e4c3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 81f1c385bf3..3413b3e3424 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -789,8 +789,8 @@ class Repository Commit.order_by(collection: commits, order_by: order_by, sort: sort) end - def branch_names_contains(sha) - raw_repository.branch_names_contains_sha(sha) + def branch_names_contains(sha, limit: 0) + raw_repository.branch_names_contains_sha(sha, limit: limit) end def tag_names_contains(sha, limit: 0) |