From a45bfc87865dcd4aac640cc46fe0ef35a2b55d9c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 19 Jul 2012 17:45:38 -0500 Subject: MercurialDownloadStrategy: remove redundant chdir Signed-off-by: Jack Nagel --- Library/Homebrew/download_strategy.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 43d10ae9f..479dc8fae 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 -- cgit v1.2.3