summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-05-02 09:38:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-06 10:06:14 (GMT)
commitc3c3486b246fffef82b5541ca2d2850b2fcf34d5 (patch)
treea03d18f6ba9f6345da431c67b11f26a5189daa36 /submodule.c
parent033abf97fcbc247eabf915780181d947cfb66205 (diff)
downloadgit-c3c3486b246fffef82b5541ca2d2850b2fcf34d5.zip
git-c3c3486b246fffef82b5541ca2d2850b2fcf34d5.tar.gz
git-c3c3486b246fffef82b5541ca2d2850b2fcf34d5.tar.bz2
Convert remaining die*(BUG) messages
These were not caught by the previous commit, as they did not match the regular expression. While at it, remove the localization from one instance: we never want BUG() messages to be translated, as they target Git developers, not the end user (hence it would be quite unhelpful to not only burden the translators, but then even end up with a bug report in a language that no core Git contributor understands). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.c b/submodule.c
index 733db44..c282fa8 100644
--- a/submodule.c
+++ b/submodule.c
@@ -2043,7 +2043,7 @@ const char *get_superproject_working_tree(void)
if (super_sub_len > cwd_len ||
strcmp(&cwd[cwd_len - super_sub_len], super_sub))
- die (_("BUG: returned path string doesn't match cwd?"));
+ BUG("returned path string doesn't match cwd?");
super_wt = xstrdup(cwd);
super_wt[cwd_len - super_sub_len] = '\0';