mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 20:51:11 +00:00
Checkout: handle deeply-nested submodules better.
Now creating intermediate directories where the submodule is deep, like "src/deps/foosubmodule".
This commit is contained in:
parent
8a155a044b
commit
b494cdbdb2
@ -120,7 +120,8 @@ static int checkout_walker(const char *path, const git_tree_entry *entry, void *
|
||||
|
||||
case GIT_OBJ_COMMIT:
|
||||
/* Submodule */
|
||||
retcode = p_mkdir(git_buf_cstr(&fnbuf), 0644);
|
||||
git_futils_mkpath2file(git_buf_cstr(&fnbuf), data->opts->dir_mode);
|
||||
retcode = p_mkdir(git_buf_cstr(&fnbuf), data->opts->dir_mode);
|
||||
break;
|
||||
|
||||
case GIT_OBJ_BLOB:
|
||||
|
Loading…
Reference in New Issue
Block a user