diff options
| author | Jack Nagel | 2012-07-19 17:45:38 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-07-19 17:45:38 -0500 |
| commit | a45bfc87865dcd4aac640cc46fe0ef35a2b55d9c (patch) | |
| tree | 57d051c441b13c8e771cde9d491ed59c457de7d0 /Library | |
| parent | 9ec231bcb7722d6acb1c1d49c77916b4fbdf4115 (diff) | |
| download | brew-a45bfc87865dcd4aac640cc46fe0ef35a2b55d9c.tar.bz2 | |
MercurialDownloadStrategy: remove redundant chdir
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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 |
