Quote entire path passed to checkout-index
This commit is contained in:
parent
5c758f7852
commit
60452a526f
@ -652,7 +652,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
|||||||
|
|
||||||
def checkout_submodules(dst)
|
def checkout_submodules(dst)
|
||||||
escaped_clone_path = cached_location.to_s.gsub(/\//, '\/')
|
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
|
quiet_safe_system "git", "submodule", "foreach", "--recursive", sub_cmd
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user