]> git.ipfire.org Git - thirdparty/git.git/blobdiff - gettext.c
do_read_index(): always mark index as initialized unless erroring out
[thirdparty/git.git] / gettext.c
index f139008d0a385140f354e6d2b36bd520c1b555b4..e81357f9ba50a2a02ed2811b198a7039fcaaa46d 100644 (file)
--- a/gettext.c
+++ b/gettext.c
@@ -100,6 +100,8 @@ static void init_gettext_charset(const char *domain)
                setlocale(LC_CTYPE, "C");
 }
 
+int git_gettext_enabled = 0;
+
 void git_setup_gettext(void)
 {
        const char *podir = getenv(GIT_TEXT_DOMAIN_DIR_ENVIRONMENT);
@@ -119,6 +121,8 @@ void git_setup_gettext(void)
        init_gettext_charset("git");
        textdomain("git");
 
+       git_gettext_enabled = 1;
+
        free(p);
 }