From 023bddbd046c7dce0f9e56344f9fb5e258e0f59f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 15 Jun 2015 21:32:15 -0400 Subject: [PATCH] Make UnsafeSubversionDownloadStrategy a no-op --- Library/Homebrew/download_strategy.rb | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 6b5148aa51..12807fab7c 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -496,16 +496,12 @@ class SubversionDownloadStrategy < VCSDownloadStrategy end end - def fetch_args - [] - end - def fetch_repo target, url, revision=nil, ignore_externals=false # Use "svn up" 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? ? 'up' : 'checkout' - args = ['svn', svncommand] + fetch_args + args = ['svn', svncommand] args << url unless target.directory? args << target args << '-r' << revision if revision @@ -542,14 +538,8 @@ end # @deprecated StrictSubversionDownloadStrategy = SubversionDownloadStrategy - # @deprecated -class UnsafeSubversionDownloadStrategy < SubversionDownloadStrategy - def fetch_args - %w[--non-interactive --trust-server-cert] - end - private :fetch_args -end +UnsafeSubversionDownloadStrategy = SubversionDownloadStrategy class GitDownloadStrategy < VCSDownloadStrategy SHALLOW_CLONE_WHITELIST = [