Skip to content

Commit 1c8dfc3

Browse files
mjggitster
authored andcommitted
sequencer: do not translate parameters to error_resolve_conflict()
`error_resolve_conflict()` checks the untranslated action_name parameter, so pass it as is. Suggested-by: Johannes Schindelin <[email protected]> Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5670e0e commit 1c8dfc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sequencer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ static struct tree *empty_tree(struct repository *r)
537537
static int error_dirty_index(struct repository *repo, struct replay_opts *opts)
538538
{
539539
if (repo_read_index_unmerged(repo))
540-
return error_resolve_conflict(_(action_name(opts)));
540+
return error_resolve_conflict(action_name(opts));
541541

542542
error(_("your local changes would be overwritten by %s."),
543543
_(action_name(opts)));
@@ -3753,7 +3753,7 @@ static int do_reset(struct repository *r,
37533753
init_checkout_metadata(&unpack_tree_opts.meta, name, &oid, NULL);
37543754

37553755
if (repo_read_index_unmerged(r)) {
3756-
ret = error_resolve_conflict(_(action_name(opts)));
3756+
ret = error_resolve_conflict(action_name(opts));
37573757
goto cleanup;
37583758
}
37593759

0 commit comments

Comments
 (0)