]> source.dussan.org Git - jgit.git/commitdiff
Fix FileSnapshot#saveNoConfig 62/146362/1
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 19 Jul 2019 12:42:40 +0000 (14:42 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 19 Jul 2019 12:45:55 +0000 (14:45 +0200)
We should not use configuration when creating FileSnapshot when
accessing FileBasedConfig.

Change-Id: Ic521632870f18bb004751642b9d30648dd94049a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java

index fe3703719c1ab7e6e0e461cbea7e04b52b42e386..ec71783c6ef99fb04063b44390eecb518629d28c 100644 (file)
@@ -147,7 +147,7 @@ public class FileSnapshot {
         * @return the snapshot.
         */
        public static FileSnapshot saveNoConfig(File path) {
-               return new FileSnapshot(path);
+               return new FileSnapshot(path, false);
        }
 
        private static Object getFileKey(BasicFileAttributes fileAttributes) {