aboutsummaryrefslogtreecommitdiff
path: root/builtin/worktree.c
diff options
context:
space:
mode:
authorLidong Yan <502024330056@smail.nju.edu.cn>2025-06-03 02:01:14 +0000
committerJunio C Hamano <gitster@pobox.com>2025-06-03 08:36:11 -0700
commit5dceb8bd054af0b9955e0751841fb40f13c85fba (patch)
tree8702004ac3efa68c1bd3012efa5063de55b84f19 /builtin/worktree.c
parentd50a5e8939abfc07c2ff97ae72e9330939b36ee0 (diff)
downloadgit-5dceb8bd054af0b9955e0751841fb40f13c85fba.tar.xz
BUG(): remove leading underscore of the format string
BUG() is not end-user facing but programmer facing, and we do not use _("...") in them. Replace all `BUG(_("..."))` with `BUG("...")` Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/worktree.c')
-rw-r--r--builtin/worktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 48448a8355..658731492c 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -621,7 +621,7 @@ static void print_preparing_worktree_line(int detach,
else {
struct commit *commit = lookup_commit_reference_by_name(branch);
if (!commit)
- BUG(_("unreachable: invalid reference: %s"), branch);
+ BUG("unreachable: invalid reference: %s", branch);
fprintf_ln(stderr, _("Preparing worktree (detached HEAD %s)"),
repo_find_unique_abbrev(the_repository, &commit->object.oid, DEFAULT_ABBREV));
}