diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-09-01 12:40:07 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-09-01 12:40:07 +0300 |
commit | 254f5ab62b2863c721cf807f1f7dd1e5a183ed67 (patch) | |
tree | 9ca99a159f701f93c7f4c6bec00d8b6cd83849d3 /lib/gitlab/git/repository.rb | |
parent | 51260c050be00d7819356a67995851fffc2d9a06 (diff) |
Add Gitlab::Git::Repository#==
Diffstat (limited to 'lib/gitlab/git/repository.rb')
-rw-r--r-- | lib/gitlab/git/repository.rb | 4 |
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| |