Re: [PATCH 04/14] connect_work_tree_and_git_dir: safely create leading directories

2017-02-15 Thread Junio C Hamano
Stefan Beller writes: > On Wed, Feb 15, 2017 at 10:22 AM, Junio C Hamano wrote: >> Stefan Beller writes: >> >>> In a later patch we'll use connect_work_tree_and_git_dir when the >>> directory for the gitlink file doesn't exist yet. Safely create >>> the directory first. >>> >>> Signed-off-by: S

Re: [PATCH 04/14] connect_work_tree_and_git_dir: safely create leading directories

2017-02-15 Thread Stefan Beller
On Wed, Feb 15, 2017 at 10:22 AM, Junio C Hamano wrote: > Stefan Beller writes: > >> In a later patch we'll use connect_work_tree_and_git_dir when the >> directory for the gitlink file doesn't exist yet. Safely create >> the directory first. >> >> Signed-off-by: Stefan Beller > > Among the exist

Re: [PATCH 04/14] connect_work_tree_and_git_dir: safely create leading directories

2017-02-15 Thread Junio C Hamano
Stefan Beller writes: > In a later patch we'll use connect_work_tree_and_git_dir when the > directory for the gitlink file doesn't exist yet. Safely create > the directory first. > > Signed-off-by: Stefan Beller Among the existing two callers, the "absorb" logic in submodule.c has safe-create-l

[PATCH 04/14] connect_work_tree_and_git_dir: safely create leading directories

2017-02-14 Thread Stefan Beller
In a later patch we'll use connect_work_tree_and_git_dir when the directory for the gitlink file doesn't exist yet. Safely create the directory first. Signed-off-by: Stefan Beller --- dir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dir.c b/dir.c index 4541f9e146..69ca3d1411 100644 --