checkout: check_linked_checkout: simplify symref parsing
[gitweb.git] / builtin / worktree.c
index 050b443dc008e4da542147edae391735426844c4..69248ba0a352de82f59a117b9ba4ed4e6af74a4d 100644 (file)
@@ -303,7 +303,7 @@ static int add(int ac, const char **av, const char *prefix)
 
        argv_array_push(&cmd, "checkout");
        if (force)
-               argv_array_push(&cmd, "--force");
+               argv_array_push(&cmd, "--ignore-other-worktrees");
        if (new_branch)
                argv_array_pushl(&cmd, "-b", new_branch, NULL);
        if (new_branch_force)