diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-09-04 17:04:10 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-09-06 16:01:48 -0300 |
commit | 460badd8cca3a515bbcae5235c14c09cc907abaf (patch) | |
tree | 9fdb65e562dba755189fc2e5cd61038a4d9d056c /lib | |
parent | 21096e2391e3e4c5d8e6ab1d430189429847248d (diff) | |
download | gitlab-ce-460badd8cca3a515bbcae5235c14c09cc907abaf.tar.gz |
Add Gitlab::Git::Repository#find_remote_root_ref
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 8 |
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, |