SubversionDownloadStrategy: don't mutate URL string

This commit is contained in:
Jack Nagel 2013-10-11 19:26:14 -05:00
parent 284a3716ea
commit 40c0ed8a9a

View File

@ -329,7 +329,7 @@ class SubversionDownloadStrategy < VCSDownloadStrategy
end end
def fetch def fetch
@url.sub!(/^svn\+/, '') if @url =~ %r[^svn\+http://] @url = @url.sub(/^svn\+/, '') if @url =~ %r[^svn\+http://]
ohai "Checking out #{@url}" ohai "Checking out #{@url}"
if @clone.exist? and not repo_valid? if @clone.exist? and not repo_valid?