diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-02-12 12:49:38 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-13 00:13:35 +0300 |
commit | 78d986b252359351a579dc2629c8384d5c8eb8ff (patch) | |
tree | 92c841e91108f7fa8656c232fdf59219a3b8bd77 /Documentation/git-worktree.txt | |
parent | c64a8d200f4109df86c6d4716ea4da58df450e34 (diff) |
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 'Documentation/git-worktree.txt')
-rw-r--r-- | Documentation/git-worktree.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt index 4fa1dd3a48..e6764ee8e0 100644 --- a/Documentation/git-worktree.txt +++ b/Documentation/git-worktree.txt @@ -79,7 +79,7 @@ with `--reason`. move:: Move a working tree to a new location. Note that the main working tree -cannot be moved. +or linked working trees containing submodules cannot be moved. prune:: |