Quote entire path passed to checkout-index

This commit is contained in:
Jack Nagel 2015-02-08 19:53:38 -05:00
parent 5c758f7852
commit 60452a526f

View File

@ -652,7 +652,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
def checkout_submodules(dst)
escaped_clone_path = cached_location.to_s.gsub(/\//, '\/')
sub_cmd = "git checkout-index -a -f --prefix=#{dst}/${toplevel/#{escaped_clone_path}/}/$path/"
sub_cmd = %[git checkout-index -a -f --prefix="#{dst}/${toplevel/#{escaped_clone_path}/}/$path/"]
quiet_safe_system "git", "submodule", "foreach", "--recursive", sub_cmd
end
end