diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 43d10ae9ff142bc753fc7f8a2fd825edd0670471..479dc8fae0710809c58b3a8b85ff25e8cdb78a97 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -486,9 +486,7 @@ class MercurialDownloadStrategy < AbstractDownloadStrategy Dir.chdir @clone do if @spec and @ref ohai "Checking out #{@spec} #{@ref}" - Dir.chdir @clone do - safe_system 'hg', 'archive', '--subrepos', '-y', '-r', @ref, '-t', 'files', dst - end + safe_system 'hg', 'archive', '--subrepos', '-y', '-r', @ref, '-t', 'files', dst else safe_system 'hg', 'archive', '--subrepos', '-y', '-t', 'files', dst end