Skip to content

Commit 1f622bb

Browse files
committed
Merge branch 'ly/do-not-localize-bug-messages'
Code clean-up. * ly/do-not-localize-bug-messages: BUG(): remove leading underscore of the format string
2 parents 870a042 + 5dceb8b commit 1f622bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

builtin/mktag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static int mktag_fsck_error_func(struct fsck_options *o UNUSED,
4141
fprintf_ln(stderr, _("error: tag input does not pass fsck: %s"), message);
4242
return 1;
4343
default:
44-
BUG(_("%d (FSCK_IGNORE?) should never trigger this callback"),
44+
BUG("%d (FSCK_IGNORE?) should never trigger this callback",
4545
msg_type);
4646
}
4747
}

builtin/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static void print_preparing_worktree_line(int detach,
621621
else {
622622
struct commit *commit = lookup_commit_reference_by_name(branch);
623623
if (!commit)
624-
BUG(_("unreachable: invalid reference: %s"), branch);
624+
BUG("unreachable: invalid reference: %s", branch);
625625
fprintf_ln(stderr, _("Preparing worktree (detached HEAD %s)"),
626626
repo_find_unique_abbrev(the_repository, &commit->object.oid, DEFAULT_ABBREV));
627627
}

pack-bitmap-write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ void bitmap_writer_finish(struct bitmap_writer *writer,
10871087
oid_access);
10881088

10891089
if (commit_pos < 0)
1090-
BUG(_("trying to write commit not in index"));
1090+
BUG("trying to write commit not in index");
10911091
stored->commit_pos = commit_pos + base_objects;
10921092
}
10931093

0 commit comments

Comments
 (0)