Merge branch 'jk/parse-options-concat'
[gitweb.git] / t / t2028-worktree-move.sh
index 3a8512c03004dfc9c8c63f9388af6904765e6027..8298aaf97f706ea796a12614acafd19636aeaa70 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