diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-04-19 05:47:35 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-05-02 23:17:58 +0300 |
commit | 5e0e5801f1d113802f2bbbbfbaea5a53ddf1f957 (patch) | |
tree | 4c3c5a1fb7457e4ba25a0e2b8a6755a312fa1528 /lib/gitlab/gitaly_client | |
parent | d32ecb23eb10065b1cc5eea95f4271ef402f0059 (diff) |
Re-enable ref operations with gitaly after not-found fix
Diffstat (limited to 'lib/gitlab/gitaly_client')
-rw-r--r-- | lib/gitlab/gitaly_client/ref.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client/ref.rb b/lib/gitlab/gitaly_client/ref.rb index 2a5e8f73e55..f6c77ef1a3e 100644 --- a/lib/gitlab/gitaly_client/ref.rb +++ b/lib/gitlab/gitaly_client/ref.rb @@ -11,7 +11,9 @@ module Gitlab def default_branch_name request = Gitaly::FindDefaultBranchNameRequest.new(repository: @gitaly_repo) - stub.find_default_branch_name(request).name.gsub(/^refs\/heads\//, '') + branch_name = stub.find_default_branch_name(request).name + + Gitlab::Git.branch_name(branch_name) end def branch_names |