From: Ivan Frade Date: Tue, 24 Sep 2024 22:23:04 +0000 (-0700) Subject: DfsInserter: Create PackConfig from repo instead of repo.conf X-Git-Tag: v7.1.0.202410012040-m1~11^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c5407a2b5967e19859d9028db2ad72c54a6f047c;p=jgit.git DfsInserter: Create PackConfig from repo instead of repo.conf PackConfig can be constructed from the repo or from a config. While browing the code, it is easier to follow the provenance of the configuration when using the repository constructor. Use the PackConfig(Repository) constructor in the DfsInserter. Internally it calls PackConfig(repo.getConfig()) so this should be a noop. Change-Id: Ifce5bc87404ca8ec9a821d28253d489056faad9a --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java index a07d8416c4..86fbd445be 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java @@ -93,7 +93,7 @@ public class DfsInserter extends ObjectInserter { */ protected DfsInserter(DfsObjDatabase db) { this.db = db; - PackConfig pc = new PackConfig(db.getRepository().getConfig()); + PackConfig pc = new PackConfig(db.getRepository()); this.minBytesForObjectSizeIndex = pc.getMinBytesForObjSizeIndex(); }