[PATCH] sequencer: rectify empty hint in call of require_clean_work_tree()
- From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
- Date
- Mar 23, 2023, 16:22 UTC
- Message-ID
- <20230323162234.995514-1-oswald.buddenhagen@gmx.de>
The canonical way to represent "no error hint" is making it null, which shortcuts the error() call altogether.
Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> --- sequencer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sequencer.c b/sequencer.c index 3be23d7ca2..7c275c9a65 100644 --- a/sequencer.c +++ b/sequencer.c @@ -6168,7 +6168,7 @@ int complete_action(struct repository *r, struct replay_opts *opts, unsigned fla if (checkout_onto(r, opts, onto_name, &oid, orig_head)) goto cleanup; - if (require_clean_work_tree(r, "rebase", "", 1, 1)) + if (require_clean_work_tree(r, "rebase", NULL, 1, 1)) goto cleanup; todo_list_write_total_nr(&new_todo);
-- 2.40.0.152.g15d061e6df