Make UnsafeSubversionDownloadStrategy a no-op
This commit is contained in:
parent
8bdc7b92d8
commit
023bddbd04
@ -496,16 +496,12 @@ class SubversionDownloadStrategy < VCSDownloadStrategy
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_args
|
|
||||||
[]
|
|
||||||
end
|
|
||||||
|
|
||||||
def fetch_repo target, url, revision=nil, ignore_externals=false
|
def fetch_repo target, url, revision=nil, ignore_externals=false
|
||||||
# Use "svn up" when the repository already exists locally.
|
# Use "svn up" when the repository already exists locally.
|
||||||
# This saves on bandwidth and will have a similar effect to verifying the
|
# 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.
|
# cache as it will make any changes to get the right revision.
|
||||||
svncommand = target.directory? ? 'up' : 'checkout'
|
svncommand = target.directory? ? 'up' : 'checkout'
|
||||||
args = ['svn', svncommand] + fetch_args
|
args = ['svn', svncommand]
|
||||||
args << url unless target.directory?
|
args << url unless target.directory?
|
||||||
args << target
|
args << target
|
||||||
args << '-r' << revision if revision
|
args << '-r' << revision if revision
|
||||||
@ -542,14 +538,8 @@ end
|
|||||||
|
|
||||||
# @deprecated
|
# @deprecated
|
||||||
StrictSubversionDownloadStrategy = SubversionDownloadStrategy
|
StrictSubversionDownloadStrategy = SubversionDownloadStrategy
|
||||||
|
|
||||||
# @deprecated
|
# @deprecated
|
||||||
class UnsafeSubversionDownloadStrategy < SubversionDownloadStrategy
|
UnsafeSubversionDownloadStrategy = SubversionDownloadStrategy
|
||||||
def fetch_args
|
|
||||||
%w[--non-interactive --trust-server-cert]
|
|
||||||
end
|
|
||||||
private :fetch_args
|
|
||||||
end
|
|
||||||
|
|
||||||
class GitDownloadStrategy < VCSDownloadStrategy
|
class GitDownloadStrategy < VCSDownloadStrategy
|
||||||
SHALLOW_CLONE_WHITELIST = [
|
SHALLOW_CLONE_WHITELIST = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user