summaryrefslogtreecommitdiff
path: root/bundle.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2012-04-26 00:53:59 -0500
committerJunio C Hamano <gitster@pobox.com>2012-04-26 08:08:07 -0700
commit97afde15f58728138f8e178b2acb7c72473f7d96 (patch)
tree2729092744d7281a285b2870d12c2eaedefae807 /bundle.c
parentd909e0761c234b28aac77566368c1ee5451a856a (diff)
downloadgit-97afde15f58728138f8e178b2acb7c72473f7d96.tar.gz
bundle: remove stray single-quote from error message
After running rev-list --boundary to retrieve the list of boundary commits, "git bundle create" runs its own revision walk. If in this stage git encounters an unfamiliar option, it writes a message with an unbalanced quotation mark: error: unrecognized argument: --foo' Drop the stray quote to match the "unrecognized argument: %s" message used elsewhere and save translators some work. This is mostly a futureproofing measure: for now, the "rev-list --boundary" command catches most strange arguments on its own and the above message is not seen unless you try something esoteric like "git bundle create test.bundle --header HEAD". Reported-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bundle.c')
-rw-r--r--bundle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle.c b/bundle.c
index 6bf849740c..5364cbfa0f 100644
--- a/bundle.c
+++ b/bundle.c
@@ -256,7 +256,7 @@ int create_bundle(struct bundle_header *header, const char *path,
argc = setup_revisions(argc, argv, &revs, NULL);
if (argc > 1)
- return error("unrecognized argument: %s'", argv[1]);
+ return error("unrecognized argument: %s", argv[1]);
object_array_remove_duplicates(&revs.pending);