From ad18c5c4b1f1a858ed3ddae33cb7174b9f7ea78d Mon Sep 17 00:00:00 2001 From: feu Date: Fri, 27 Jul 2018 10:23:36 -0300 Subject: [PATCH] adjusting args in fetch_repo --- Library/Homebrew/download_strategy.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index a7e87cb4ed..a9f221dd82 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -579,13 +579,10 @@ class SubversionDownloadStrategy < VCSDownloadStrategy # Use "svn update" when the repository already exists locally. # This saves on bandwidth and will have a similar effect to verifying the # cache as it will make any changes to get the right revision. - svncommand = target.directory? ? "update" : "checkout" - args = ["svn", svncommand] - if svncommand == "checkout" - args << url - args << target - elsif svncommand == "update" - args << svn_escape(target) + args = if target.directory? + ["svn", "update", svn_escape(target)] + else + ["svn", "checkout", url, target] end if revision ohai "Checking out #{@ref}"