Commit c13f712c authored by http://jneen.net/'s avatar http://jneen.net/

implement Repository#==

so that with_repo_branch_commit can properly short-circuit
parent 539ed0a6
...@@ -60,6 +60,12 @@ class Repository ...@@ -60,6 +60,12 @@ class Repository
@project = project @project = project
end end
def equals(other)
@disk_path == other.disk_path
end
alias_method :==, :equals
def raw_repository def raw_repository
return nil unless full_path return nil unless full_path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment