diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index de092a9a5f..5a661b3d65 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