Add Gitlab::Git::Repository#==
This commit is contained in:
parent
51260c050b
commit
254f5ab62b
1 changed files with 4 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue