summaryrefslogtreecommitdiff
path: root/builtin/index-pack.c
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-02-12 16:49:38 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-02-12 13:13:35 -0800
commit78d986b252359351a579dc2629c8384d5c8eb8ff (patch)
tree92c841e91108f7fa8656c232fdf59219a3b8bd77 /builtin/index-pack.c
parentworktree move: accept destination as directory (diff)
downloadtgif-78d986b252359351a579dc2629c8384d5c8eb8ff.tar.xz
worktree move: refuse to move worktrees with submodules
Submodules contains .git files with relative paths. After a worktree move, these files need to be updated or they may point to nowhere. This is a bandage patch to make sure "worktree move" don't break people's worktrees by accident. When .git file update code is in place, this validate_no_submodules() could be removed. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/index-pack.c')
0 files changed, 0 insertions, 0 deletions