aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/worktree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-06-17 10:44:40 -0700
committerJunio C Hamano <gitster@pobox.com>2025-06-17 10:44:40 -0700
commit1f622bb0abf08c31a94858955a1350a65bd410de (patch)
tree43701f1dac1c8d753711a47bef411bd28aa270eb /builtin/worktree.c
parent870a0421c435e956d73aa9c8458788ac29d44ca3 (diff)
parent5dceb8bd054af0b9955e0751841fb40f13c85fba (diff)
downloadgit-1f622bb0abf08c31a94858955a1350a65bd410de.tar.gz
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
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 88a36ea9f8..2dceeeed8b 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));
}