fetch: merge config instead of updating

Update will replace sections instead of merging them together, which
is not desirable here.

Related https://github.com/iterative/studio/pull/6541
This commit is contained in:
Ruslan Kuprieiev
2023-08-10 04:52:08 +03:00
parent 09cfd911bb
commit e9545c8b55
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -165,6 +165,9 @@ class Config(dict):
with open(config_file, "w+", encoding="utf-8"):
return Config(dvc_dir)
def merge(self, config):
merge(self, config)
def load(
self,
validate: bool = True,
+1 -1
View File
@@ -48,7 +48,7 @@ def _collect_indexes( # noqa: PLR0913
all_commits=all_commits,
):
try:
repo.config.update(config)
repo.config.merge(config)
idx = repo.index.targets_view(
targets,