Преглед на файлове

Fix FileSnapshot#saveNoConfig

We should not use configuration when creating FileSnapshot when
accessing FileBasedConfig.

Change-Id: Ic521632870f18bb004751642b9d30648dd94049a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.1.9.201908210455-r
Matthias Sohn преди 4 години
родител
ревизия
72d6e304b8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java Целия файл

@@ -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) {

Loading…
Отказ
Запис