From abb57e6b5674b7251bd94b7238e5d995ad9c30c5 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Thu, 6 Nov 2014 09:48:01 +0100 Subject: [PATCH] Do not swallow exception if IndexDiff hits invalid ignore param Change-Id: I8a595e1f01a0731118d3c537be420222f7fec744 Signed-off-by: Matthias Sohn --- org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java index 240a6f7b1..8e0c03ca5 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java @@ -525,9 +525,11 @@ public class IndexDiff { .equals(localIgnoreSubmoduleMode)) continue; } catch (ConfigInvalidException e) { - throw new IOException( + IOException e1 = new IOException( "Found invalid ignore param for submodule " + smw.getPath()); + e1.initCause(e); + throw e1; } Repository subRepo = smw.getRepository(); ObjectId subHead = subRepo.resolve("HEAD"); //$NON-NLS-1$