Commit 254f5ab6 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Add Gitlab::Git::Repository#==

parent 51260c05
......@@ -70,6 +70,10 @@ module Gitlab
delegate :exists?, to: :gitaly_repository_client
def ==(other)
path == other.path
end
# Default branch in the repository
def root_ref
@root_ref ||= gitaly_migrate(:root_ref) do |is_enabled|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment