From 65ed25b34eb256496b34c33b89d4f7ad88d8090d Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Fri, 10 Sep 2010 00:55:29 +0200 Subject: [PATCH] Return the documented value from DirCacheCheckout.checkout Change-Id: I34d773b18e6a1ee05774d7b9471f9915c48aa63e Signed-off-by: Robin Rosenberg --- .../src/org/eclipse/jgit/dircache/DirCacheCheckout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java index 13a253e0a..eb7c9e120 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java @@ -352,7 +352,7 @@ public class DirCacheCheckout { throw new IndexWriteException(); } - return toBeDeleted == null; + return toBeDeleted.size() == 0; } private static boolean isSamePrefix(String a, String b) {