aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2014-12-06 16:48:20 -0500
committerJack Nagel2014-12-06 16:48:20 -0500
commitfd11e2fe9bebf4b84588211f0ebb14e8734ff535 (patch)
tree2086489bd448a20f24376f92c7b67c47ecc4822c /Library/Homebrew/download_strategy.rb
parent962d3bccbaa92c675226cbbfc71ad5b83df6f9e1 (diff)
downloadhomebrew-fd11e2fe9bebf4b84588211f0ebb14e8734ff535.tar.bz2
Simplify fossil checkouts
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
-rw-r--r--Library/Homebrew/download_strategy.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index de092a9a5..5a661b3d6 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -729,8 +729,9 @@ end
class FossilDownloadStrategy < VCSDownloadStrategy
def stage
super
- safe_system fossilpath, "open", @clone
- safe_system fossilpath, "checkout", @ref if @ref_type && @ref
+ args = [fossilpath, "open", @clone]
+ args << @ref if @ref_type && @ref
+ safe_system(*args)
end
private