[PATCH 2/3] submodule: ensure core.worktree is set after update

2018-06-18 Thread Stefan Beller
Signed-off-by: Stefan Beller --- builtin/submodule--helper.c | 24 git-submodule.sh| 5 + 2 files changed, 29 insertions(+) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index bd250ca2164..dffc55ed8ee 100644 --- a/builtin/submodu

Re: [PATCH 2/3] submodule: ensure core.worktree is set after update

2018-06-16 Thread SZEDER Gábor
> +static int connect_gitdir_workingtree(int argc, const char **argv, const > char *prefix) > +{ > + struct strbuf sb = STRBUF_INIT; > + const char *name, *path; > + char *sm_gitdir; > + > + if (argc != 3) > + BUG("submodule--helper connect-gitdir-workingtree > "); S

[PATCH 2/3] submodule: ensure core.worktree is set after update

2018-06-12 Thread Stefan Beller
Signed-off-by: Stefan Beller --- builtin/submodule--helper.c | 24 git-submodule.sh| 5 + 2 files changed, 29 insertions(+) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index bd250ca2164..dffc55ed8ee 100644 --- a/builtin/submodu