]> source.dussan.org Git - jgit.git/commitdiff
FileRepository: Remove unnecessary setConfig call 38/1201738/2 71/1000671/edit-1201738/1
authorIvan Frade <ifrade@google.com>
Tue, 24 Sep 2024 23:32:31 +0000 (16:32 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 27 Sep 2024 11:07:10 +0000 (11:07 +0000)
The constructor of GC sets exactly the same config. Remove this
set to make clearer from where the config is coming.

Change-Id: Idb71c7827f180923092ef5392545df81960ee93a

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java

index b5d29a3fc8b6126eb77a060aaab68469691e8545..230dc6f45ac27fad0019b80e9ac53a857ca61e2c 100644 (file)
@@ -60,7 +60,6 @@ import org.eclipse.jgit.lib.StoredConfig;
 import org.eclipse.jgit.revwalk.RevWalk;
 import org.eclipse.jgit.storage.file.FileBasedConfig;
 import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
-import org.eclipse.jgit.storage.pack.PackConfig;
 import org.eclipse.jgit.transport.ReceiveCommand;
 import org.eclipse.jgit.util.FileUtils;
 import org.eclipse.jgit.util.IO;
@@ -595,7 +594,6 @@ public class FileRepository extends Repository {
        @Override
        public void autoGC(ProgressMonitor monitor) {
                GC gc = new GC(this);
-               gc.setPackConfig(new PackConfig(this));
                gc.setProgressMonitor(monitor);
                gc.setAuto(true);
                gc.setBackground(shouldAutoDetach());