aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Frade <ifrade@google.com>2024-09-24 15:23:04 -0700
committerIvan Frade <ifrade@google.com>2024-09-24 15:23:04 -0700
commitc5407a2b5967e19859d9028db2ad72c54a6f047c (patch)
tree3488ba06b4ae13c42d1d2d5dbdd3a318295a05c8
parentcd21ed3b4ec3c8ad1ccca6bcffd41e211d659ae0 (diff)
downloadjgit-c5407a2b5967e19859d9028db2ad72c54a6f047c.tar.gz
jgit-c5407a2b5967e19859d9028db2ad72c54a6f047c.zip
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
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java2
1 files changed, 1 insertions, 1 deletions
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();
}