implement Repository#==
so that with_repo_branch_commit can properly short-circuit
This commit is contained in:
parent
539ed0a637
commit
c13f712c77
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue