Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-04 18:09:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-04 18:09:33 +0300
commitbf6d126a58a66a11b2e4b9de89986174a1885105 (patch)
treebf2912b22073ed86969a56935d81cae0b73e710b /app/models/repository.rb
parent7928b47c8e06c1ac3f63d321a73dd527aea4e4c3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r--app/models/repository.rb4
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)