[PATCH v6 10/16] bisect: avoid double-quoting when printing the failed command
- From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Aug 30, 2022, 18:50 UTC
- Message-ID
- <b202a0e386c91b0dbe4b1d27d55276e6e1d76587.1661885419.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1132.v6.git.1661885419.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
We already quote the command via `sq_quote_argv()`, no need to enclose the result in an extraneous pair of single-quotes.
Pointed out by Elijah Newren.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- builtin/bisect--helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c index ba4aa8059cb..05fe619c47c 100644 --- a/builtin/bisect--helper.c +++ b/builtin/bisect--helper.c @@ -1390,7 +1390,7 @@ static int cmd_bisect_run(int argc, const char **argv, const char *prefix) if (res < 0 || 128 <= res) { error(_("bisect run failed: exit code %d from" - " '%s' is < 0 or >= 128"), res, command.buf); + " %s is < 0 or >= 128"), res, command.buf); break; }
-- gitgitgadget