Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-09-01 12:40:07 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-09-01 12:40:07 +0300
commit254f5ab62b2863c721cf807f1f7dd1e5a183ed67 (patch)
tree9ca99a159f701f93c7f4c6bec00d8b6cd83849d3 /lib/gitlab/git/repository.rb
parent51260c050be00d7819356a67995851fffc2d9a06 (diff)
Add Gitlab::Git::Repository#==
Diffstat (limited to 'lib/gitlab/git/repository.rb')
-rw-r--r--lib/gitlab/git/repository.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index 7a145107d3d..7f80ea80e3e 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -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|