Skip to content

Commit 8f37827

Browse files
committed
last-modified: remove double error message
When the user passes two revisions, they get the following output: $ git last-modified HEAD HEAD~ error: last-modified can only operate on one revision at a time error: unable to setup last-modified The error message about "unable to setup" is not very informative, remove it. Signed-off-by: Toon Claes <toon@iotcl.com>
1 parent dbabde6 commit 8f37827

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/last-modified.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static int last_modified_init(struct last_modified *lm, struct repository *r,
495495
lm->rev.bloom_filter_settings = get_bloom_filter_settings(lm->rev.repo);
496496

497497
if (populate_paths_from_revs(lm) < 0)
498-
return error(_("unable to setup last-modified"));
498+
return -1;
499499

500500
CALLOC_ARRAY(lm->all_paths, hashmap_get_size(&lm->paths));
501501
lm->all_paths_nr = 0;

0 commit comments

Comments
 (0)