summaryrefslogtreecommitdiffstats
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2022-09-05 20:50:07 +0200
committerJunio C Hamano <gitster@pobox.com>2022-09-07 21:06:12 +0200
commitdd834d75caabd436e306c136f753c801220db2df (patch)
treeef09dd7d2ec65b49821dfa410ffe79adbf59df7b /builtin/remote.c
parentnotes: simplify default operation mode arguments check (diff)
downloadgit-dd834d75caabd436e306c136f753c801220db2df.tar.xz
git-dd834d75caabd436e306c136f753c801220db2df.zip
notes, remote: show unknown subcommands between `'
Update the "unknown subcommand" error message in 'git notes' and 'git remote' to wrap the offending argument between `', to make it consistent with the "unknown switch/option/subcommand" error messages in parse-options. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r--builtin/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index 9aff864fd6..596a71af13 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -1769,7 +1769,7 @@ int cmd_remote(int argc, const char **argv, const char *prefix)
return !!fn(argc, argv, prefix);
} else {
if (argc) {
- error(_("unknown subcommand: %s"), argv[0]);
+ error(_("unknown subcommand: `%s'"), argv[0]);
usage_with_options(builtin_remote_usage, options);
}
return !!show_all();