From e98317508c02b7cc65bf5b28f27788e47096b166 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Mon, 18 Jun 2018 17:06:07 -0700 Subject: submodule: ensure core.worktree is set after update Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- git-submodule.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git-submodule.sh') diff --git a/git-submodule.sh b/git-submodule.sh index 78073cd87d..6bd0db02b3 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -615,6 +615,11 @@ cmd_update() die "$(eval_gettext "Unable to find current \${remote_name}/\${branch} revision in submodule path '\$sm_path'")" fi + if ! $(git config -f "$(git rev-parse --git-common-dir)/modules/$name/config" core.worktree) 2>/dev/null + then + git submodule--helper connect-gitdir-workingtree "$name" "$sm_path" + fi + if test "$subsha1" != "$sha1" || test -n "$force" then subforce=$force -- cgit v1.3