File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,11 @@ test_expect_success 'move locked worktree' '
72
72
'
73
73
74
74
test_expect_success ' move worktree' '
75
- toplevel="$(pwd)" &&
76
75
git worktree move source destination &&
77
76
test_path_is_missing source &&
78
77
git worktree list --porcelain >out &&
79
- grep "^worktree.*/destination" out &&
80
- ! grep "^worktree.*/source" out &&
78
+ grep "^worktree.*/destination$ " out &&
79
+ ! grep "^worktree.*/source$ " out &&
81
80
git -C destination log --format=%s >actual2 &&
82
81
echo init >expected2 &&
83
82
test_cmp expected2 actual2
@@ -93,7 +92,7 @@ test_expect_success 'move worktree to another dir' '
93
92
test_when_finished "git worktree move some-dir/destination destination" &&
94
93
test_path_is_missing destination &&
95
94
git worktree list --porcelain >out &&
96
- grep "^worktree.*/some-dir/destination" out &&
95
+ grep "^worktree.*/some-dir/destination$ " out &&
97
96
git -C some-dir/destination log --format=%s >actual2 &&
98
97
echo init >expected2 &&
99
98
test_cmp expected2 actual2
You can’t perform that action at this time.
0 commit comments