Add Gitlab::Git::Repository#==

This commit is contained in:
Jacob Vosmaer 2017-09-01 11:40:07 +02:00
parent 51260c050b
commit 254f5ab62b

View file

@ -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|