From 40c0ed8a9a2c7355da6cf880b0d541afa8a2b60c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 11 Oct 2013 19:26:14 -0500 Subject: [PATCH] SubversionDownloadStrategy: don't mutate URL string --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index d42e0b090c..cb99c205a6 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -329,7 +329,7 @@ class SubversionDownloadStrategy < VCSDownloadStrategy end def fetch - @url.sub!(/^svn\+/, '') if @url =~ %r[^svn\+http://] + @url = @url.sub(/^svn\+/, '') if @url =~ %r[^svn\+http://] ohai "Checking out #{@url}" if @clone.exist? and not repo_valid?