]> git.ipfire.org Git - thirdparty/git.git/commitdiff
sequencer: do not translate command names
authorMichael J Gruber <git@grubix.eu>
Thu, 18 Aug 2022 13:13:28 +0000 (15:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 20:46:37 +0000 (13:46 -0700)
When action_name is used to denote a command `git %s` do not translate
since command names are never translated.

Suggested-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Michael J Gruber <git@grubix.eu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c

index 8b32b239b9e198e0a136a484a78cd2b154ab628b..79dad522f561cc22977ebf6404f71b697575ca96 100644 (file)
@@ -2422,7 +2422,7 @@ static int read_and_refresh_cache(struct repository *r,
        if (repo_read_index(r) < 0) {
                rollback_lock_file(&index_lock);
                return error(_("git %s: failed to read the index"),
-                       _(action_name(opts)));
+                       action_name(opts));
        }
        refresh_index(r->index, REFRESH_QUIET|REFRESH_UNMERGED, NULL, NULL, NULL);
 
@@ -2430,7 +2430,7 @@ static int read_and_refresh_cache(struct repository *r,
                if (write_locked_index(r->index, &index_lock,
                                       COMMIT_LOCK | SKIP_IF_UNCHANGED)) {
                        return error(_("git %s: failed to refresh the index"),
-                               _(action_name(opts)));
+                               action_name(opts));
                }
        }