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 messagemaint
commit
f73ee0c6be
|
@ -304,9 +304,9 @@ static void check_candidate_path(const char *path,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (locked)
|
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
|
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,
|
static int add_worktree(const char *path, const char *refname,
|
||||||
|
|
Loading…
Reference in New Issue