Skip to content
Snippets Groups Projects
Commit 254f5ab6 authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Add Gitlab::Git::Repository#==

parent 51260c05
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment