diff options
Diffstat (limited to 'repo-settings.c')
-rw-r--r-- | repo-settings.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/repo-settings.c b/repo-settings.c index 3779b85c17..05546db98e 100644 --- a/repo-settings.c +++ b/repo-settings.c @@ -49,10 +49,14 @@ void prepare_repo_settings(struct repository *r) UPDATE_DEFAULT_BOOL(r->settings.index_version, 4); UPDATE_DEFAULT_BOOL(r->settings.core_untracked_cache, UNTRACKED_CACHE_WRITE); } + if (!repo_config_get_bool(r, "fetch.writecommitgraph", &value)) + r->settings.fetch_write_commit_graph = value; if (!repo_config_get_bool(r, "feature.experimental", &value) && value) { UPDATE_DEFAULT_BOOL(r->settings.pack_use_sparse, 1); UPDATE_DEFAULT_BOOL(r->settings.fetch_negotiation_algorithm, FETCH_NEGOTIATION_SKIPPING); + UPDATE_DEFAULT_BOOL(r->settings.fetch_write_commit_graph, 1); } + UPDATE_DEFAULT_BOOL(r->settings.fetch_write_commit_graph, 0); /* Hack for test programs like test-dump-untracked-cache */ if (ignore_untracked_cache_config) |