Browse Source

pgm: Fix missing braces in Log.run()

Change-Id: I3e4f41150aeeffc8c609ef14ce5b6d428c4595d7
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.4
Matthias Sohn 6 years ago
parent
commit
5739d1b314
  1. 7
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java

7
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java

@ -197,8 +197,9 @@ class Log extends RevWalkTextBuiltin {
diffFmt.setRepository(db);
try {
diffFmt.setPathFilter(pathFilter);
if (detectRenames != null)
if (detectRenames != null) {
diffFmt.setDetectRenames(detectRenames.booleanValue());
}
if (renameLimit != null && diffFmt.isDetectRenames()) {
RenameDetector rd = diffFmt.getRenameDetector();
rd.setRenameLimit(renameLimit.intValue());
@ -220,10 +221,10 @@ class Log extends RevWalkTextBuiltin {
}
}
if (decorate)
if (decorate) {
allRefsByPeeledObjectId = getRepository()
.getAllRefsByPeeledObjectId();
}
super.run();
} catch (Exception e) {
throw die(e.getMessage(), e);

Loading…
Cancel
Save