diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index bc9c41c9e..33591a6b1 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -111,7 +111,16 @@ class SubversionDownloadStrategy <AbstractDownloadStrategy ohai "Checking out #{@url}" @co=HOMEBREW_CACHE+@unique_token unless @co.exist? - safe_system '/usr/bin/svn', 'checkout', @url, @co + checkout_args = ['/usr/bin/svn', 'checkout', @url] + + if (@spec == :revision) and @ref + checkout_args << '-r' + checkout_args << @ref + end + + checkout_args << @co + + safe_system *checkout_args else # TODO svn up? puts "Repository already checked out" |
