sha1_file: pass empty buffer to index empty file
[gitweb.git] / config.c
index 2634457f6b07ca55b69f3b4a22b8a9e4339fd121..61a9c296f48c929177835c6128133449a1e14a6b 100644 (file)
--- a/config.c
+++ b/config.c
@@ -874,6 +874,16 @@ static int git_default_core_config(const char *var, const char *value)
                return 0;
        }
 
+       if (!strcmp(var, "core.protecthfs")) {
+               protect_hfs = git_config_bool(var, value);
+               return 0;
+       }
+
+       if (!strcmp(var, "core.protectntfs")) {
+               protect_ntfs = git_config_bool(var, value);
+               return 0;
+       }
+
        /* Add other config variables here and to Documentation/config.txt. */
        return 0;
 }