diff options
author | Stefan Beller <sbeller@google.com> | 2018-08-13 15:42:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-14 14:01:04 -0700 |
commit | 74d4731da1fd61e3705e808bcd496979ef8ddf5a (patch) | |
tree | 67e5d121c9f54be0122fdc31154a1c425e4d0a6f /builtin/fetch.c | |
parent | builtin/submodule--helper: factor out method to update a single submodule (diff) | |
download | tgif-74d4731da1fd61e3705e808bcd496979ef8ddf5a.tar.xz |
submodule--helper: replace connect-gitdir-workingtree by ensure-core-worktree
e98317508c0 (submodule: ensure core.worktree is set after update,
2018-06-18) was overly aggressive in calling connect_work_tree_and_git_dir
as that ensures both the 'core.worktree' configuration is set as well as
setting up correct gitlink file pointing at the git directory.
We do not need to check for the gitlink in this part of the cmd_update
in git-submodule.sh, as the initial call to update-clone will have ensured
that. So we can reduce the work to only (check and potentially) set the
'core.worktree' setting.
While at it move the check from shell to C as that proves to be useful in
a follow up patch, as we do not need the 'name' in shell now.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
0 files changed, 0 insertions, 0 deletions