We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f305fce + 16cd47e commit d8976d5Copy full SHA for d8976d5
environment.c
@@ -81,7 +81,18 @@ int merge_log_config = -1;
81
int precomposed_unicode = -1; /* see probe_utf8_pathname_composition() */
82
unsigned long pack_size_limit_cfg;
83
enum log_refs_config log_all_ref_updates = LOG_REFS_UNSET;
84
-int max_allowed_tree_depth = 2048;
+int max_allowed_tree_depth =
85
+#ifdef _MSC_VER
86
+ /*
87
+ * Visual C-compiled Git seems to run into internal stack overflow
88
+ * detection in the `RtlpAllocateHeap()` function that is called from
89
+ * within `git_inflate_init()`'s call tree, unless the following value
90
+ * is low enough.
91
+ */
92
+ 512;
93
+#else
94
+ 2048;
95
+#endif
96
97
#ifndef PROTECT_HFS_DEFAULT
98
#define PROTECT_HFS_DEFAULT 0
0 commit comments