surround %s with quotes when failed to lookup commit
The output may become confusing to recognize if the user accidentally gave an extra opening space, like: $ git commit --fixup=" 6d6360b67e99c2fd82d64619c971fdede98ee74b" fatal: could not lookup commit 6d6360b67e99c2fd82d64619c971fdede98ee74b and it will be better if we surround the %s specifier with single quotes. Signed-off-by: Teng Long <dyroneteng@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
fe86abd751
commit
e4cf013468
@@ -448,7 +448,7 @@ static int real_merge(struct merge_tree_options *o,
|
||||
|
||||
base_commit = lookup_commit_reference_by_name(merge_base);
|
||||
if (!base_commit)
|
||||
die(_("could not lookup commit %s"), merge_base);
|
||||
die(_("could not lookup commit '%s'"), merge_base);
|
||||
|
||||
opt.ancestor = merge_base;
|
||||
base_tree = repo_get_commit_tree(the_repository, base_commit);
|
||||
|
||||
Reference in New Issue
Block a user