summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-07-19 14:42:40 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2019-07-19 14:45:55 +0200
commit72d6e304b85a310d3ad271e61005eb22190b3f44 (patch)
treebe8d8af090b8baef1d8eb6c8a8919d78c7fdb284
parentd8d94272770352515c129ad6d980f2b6e8179409 (diff)
downloadjgit-72d6e304b85a310d3ad271e61005eb22190b3f44.tar.gz
jgit-72d6e304b85a310d3ad271e61005eb22190b3f44.zip
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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java
index fe3703719c..ec71783c6e 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java
+++ b/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) {