diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java index 96173b7b4..456236c09 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java @@ -321,7 +321,7 @@ public class DirCache { public boolean isOutdated() throws IOException { if (liveFile == null || !liveFile.exists()) return false; - return snapshot != null && snapshot.isModified(liveFile); + return snapshot == null || snapshot.isModified(liveFile); } /** Empty this index, removing all entries. */