Skip to content
Snippets Groups Projects
Commit a45bfc87 authored by Jack Nagel's avatar Jack Nagel
Browse files

MercurialDownloadStrategy: remove redundant chdir


Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent 9ec231bc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment