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
This commit is contained in:
commit
f73ee0c6be
@ -304,9 +304,9 @@ static void check_candidate_path(const char *path,
|
||||
}
|
||||
|
||||
if (locked)
|
||||
die(_("'%s' is a missing but locked worktree;\nuse '%s -f -f' to override, or 'unlock' and 'prune' or 'remove' to clear"), cmd, path);
|
||||
die(_("'%s' is a missing but locked worktree;\nuse '%s -f -f' to override, or 'unlock' and 'prune' or 'remove' to clear"), path, cmd);
|
||||
else
|
||||
die(_("'%s' is a missing but already registered worktree;\nuse '%s -f' to override, or 'prune' or 'remove' to clear"), cmd, path);
|
||||
die(_("'%s' is a missing but already registered worktree;\nuse '%s -f' to override, or 'prune' or 'remove' to clear"), path, cmd);
|
||||
}
|
||||
|
||||
static int add_worktree(const char *path, const char *refname,
|
||||
|
Loading…
Reference in New Issue
Block a user