sequencer: remember the onelines when parsing the todo file
[git] / t / t2028-worktree-move.sh
index 3a8512c..8298aaf 100755 (executable)
@@ -45,4 +45,18 @@ test_expect_success 'lock worktree twice (from the locked worktree)' '
        test_cmp expected .git/worktrees/source/locked
 '
 
+test_expect_success 'unlock main worktree' '
+       test_must_fail git worktree unlock .
+'
+
+test_expect_success 'unlock linked worktree' '
+       git worktree unlock source &&
+       test_path_is_missing .git/worktrees/source/locked
+'
+
+test_expect_success 'unlock worktree twice' '
+       test_must_fail git worktree unlock source &&
+       test_path_is_missing .git/worktrees/source/locked
+'
+
 test_done