submodule--helper clone: create the submodule path just once
commit47d5d6487902753f9483dc340de12551f90d4bdb
authorStefan Beller <sbeller@google.com>
Thu, 31 Mar 2016 21:04:38 +0000 (31 14:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Mar 2016 22:19:55 +0000 (31 15:19 -0700)
tree8d0650630cbcdf88efb06065a3a500e9156522f0
parent3c0663e16630ddfd9f4c2e46e52c9984a03b888d
submodule--helper clone: create the submodule path just once

We make sure that the parent directory of path exists (or create it
otherwise) and then do the same for path + "/.git".

That is equivalent to just making sure that the parent directory of
path + "/.git" exists (or create it otherwise).

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c