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
path: root/lib
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-09-04 23:04:10 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-09-06 22:01:48 +0300
commit460badd8cca3a515bbcae5235c14c09cc907abaf (patch)
tree9fdb65e562dba755189fc2e5cd61038a4d9d056c /lib
parent21096e2391e3e4c5d8e6ab1d430189429847248d (diff)
Add Gitlab::Git::Repository#find_remote_root_ref
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/repository.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index 9521a2d63a0..74a1bfb273a 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -666,6 +666,14 @@ module Gitlab
end
end
+ def find_remote_root_ref(remote_name)
+ return unless remote_name.present?
+
+ wrapped_gitaly_errors do
+ gitaly_remote_client.find_remote_root_ref(remote_name)
+ end
+ end
+
AUTOCRLF_VALUES = {
"true" => true,
"false" => false,