aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-12-09 14:22:35 -0500
committerJack Nagel2014-12-09 14:22:44 -0500
commitbd918dd9f8a815a734e0191dea947b042107d7f7 (patch)
tree9481c5ad0158ecb3171dcfd7f3b3ecd8f0154242 /Library/Formula
parent609c97926646a9652fac7ec789dc8a7d50eb72ef (diff)
downloadhomebrew-bd918dd9f8a815a734e0191dea947b042107d7f7.tar.bz2
saltstack: prefer cached_location method over @clone ivar
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/saltstack.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/saltstack.rb b/Library/Formula/saltstack.rb
index a801f28db..8605aa67a 100644
--- a/Library/Formula/saltstack.rb
+++ b/Library/Formula/saltstack.rb
@@ -5,8 +5,8 @@ require "formula"
# This is populated from git information unfortunately.
class SaltHeadDownloadStrategy < GitDownloadStrategy
def stage
- @clone.cd {reset}
- safe_system "git", "clone", @clone, "."
+ cached_location.cd { reset }
+ safe_system "git", "clone", cached_location, "."
end
end