diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2015-09-28 20:06:15 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-28 10:46:35 -0700 |
commit | 744e4697555d4982acf0862f8fa6b15dd4796c37 (patch) | |
tree | 2898f43f225e423371f8567b6d8b7982c10f08c8 /t/t2025-worktree-add.sh | |
parent | 1f5fbe1fe2d04f6386cf8febc1ce308bcf815592 (diff) | |
download | git-744e4697555d4982acf0862f8fa6b15dd4796c37.tar.gz git-744e4697555d4982acf0862f8fa6b15dd4796c37.tar.xz |
clone: allow --local from a linked checkout
Noticed-by: Bjørnar Snoksrud <snoksrud@gmail.com>
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 't/t2025-worktree-add.sh')
-rwxr-xr-x | t/t2025-worktree-add.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t2025-worktree-add.sh b/t/t2025-worktree-add.sh index 8267411a0..369417498 100755 --- a/t/t2025-worktree-add.sh +++ b/t/t2025-worktree-add.sh @@ -193,4 +193,9 @@ test_expect_success '"add" -B/--detach mutually exclusive' ' test_must_fail git worktree add -B poodle --detach bamboo master ' +test_expect_success 'local clone from linked checkout' ' + git clone --local here here-clone && + ( cd here-clone && git fsck ) +' + test_done |