dub: prefer cached_location method over @clone ivar

This commit is contained in:
Jack Nagel 2014-12-09 14:22:35 -05:00
parent 6cb0b26e20
commit 05145aac31

View file

@ -4,8 +4,8 @@ require "formula"
# To not break this, we provide a custom download strategy.
class DubHeadDownloadStrategy < GitDownloadStrategy
def stage
@clone.cd {reset}
safe_system "git", "clone", @clone, "."
cached_location.cd { reset }
safe_system "git", "clone", cached_location, "."
end
end