Do not swallow exception if IndexDiff hits invalid ignore param

Change-Id: I8a595e1f01a0731118d3c537be420222f7fec744
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2014-11-06 09:48:01 +01:00
parent d8fcc964a8
commit abb57e6b56
1 changed files with 3 additions and 1 deletions

View File

@ -525,9 +525,11 @@ public boolean diff(final ProgressMonitor monitor, int estWorkTreeSize,
.equals(localIgnoreSubmoduleMode)) .equals(localIgnoreSubmoduleMode))
continue; continue;
} catch (ConfigInvalidException e) { } catch (ConfigInvalidException e) {
throw new IOException( IOException e1 = new IOException(
"Found invalid ignore param for submodule " "Found invalid ignore param for submodule "
+ smw.getPath()); + smw.getPath());
e1.initCause(e);
throw e1;
} }
Repository subRepo = smw.getRepository(); Repository subRepo = smw.getRepository();
ObjectId subHead = subRepo.resolve("HEAD"); //$NON-NLS-1$ ObjectId subHead = subRepo.resolve("HEAD"); //$NON-NLS-1$