Skip to content

Commit 97afde1

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d909e07 commit 97afde1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ int create_bundle(struct bundle_header *header, const char *path,
256256
argc = setup_revisions(argc, argv, &revs, NULL);
257257

258258
if (argc > 1)
259-
return error("unrecognized argument: %s'", argv[1]);
259+
return error("unrecognized argument: %s", argv[1]);
260260

261261
object_array_remove_duplicates(&revs.pending);
262262

0 commit comments

Comments
 (0)