adjusting args in fetch_repo

This commit is contained in:
feu 2018-07-27 10:23:36 -03:00
parent a0f30934aa
commit ad18c5c4b1

View File

@ -579,13 +579,10 @@ class SubversionDownloadStrategy < VCSDownloadStrategy
# Use "svn update" when the repository already exists locally. # Use "svn update" 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? ? "update" : "checkout" args = if target.directory?
args = ["svn", svncommand] ["svn", "update", svn_escape(target)]
if svncommand == "checkout" else
args << url ["svn", "checkout", url, target]
args << target
elsif svncommand == "update"
args << svn_escape(target)
end end
if revision if revision
ohai "Checking out #{@ref}" ohai "Checking out #{@ref}"