implement Repository#==

so that with_repo_branch_commit can properly short-circuit
This commit is contained in:
http://jneen.net/ 2017-08-18 17:43:23 -07:00
parent 539ed0a637
commit c13f712c77

View file

@ -60,6 +60,12 @@ class Repository
@project = project
end
def equals(other)
@disk_path == other.disk_path
end
alias_method :==, :equals
def raw_repository
return nil unless full_path