Skip to content

Commit f73ee0c

Browse files
committed
Merge branch 'mt/worktree-error-message-fix'
Fix formulation of an error message with two placeholders in "git worktree add" subcommand. * mt/worktree-error-message-fix: worktree: fix order of arguments in error message
2 parents 1c04cdd + b86339b commit f73ee0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/worktree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ static void check_candidate_path(const char *path,
304304
}
305305

306306
if (locked)
307-
die(_("'%s' is a missing but locked worktree;\nuse '%s -f -f' to override, or 'unlock' and 'prune' or 'remove' to clear"), cmd, path);
307+
die(_("'%s' is a missing but locked worktree;\nuse '%s -f -f' to override, or 'unlock' and 'prune' or 'remove' to clear"), path, cmd);
308308
else
309-
die(_("'%s' is a missing but already registered worktree;\nuse '%s -f' to override, or 'prune' or 'remove' to clear"), cmd, path);
309+
die(_("'%s' is a missing but already registered worktree;\nuse '%s -f' to override, or 'prune' or 'remove' to clear"), path, cmd);
310310
}
311311

312312
static int add_worktree(const char *path, const char *refname,

0 commit comments

Comments
 (0)