dub: prefer cached_location method over @clone ivar
This commit is contained in:
parent
6cb0b26e20
commit
05145aac31
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue