Browse Source

pgm: Fix missing braces in LsRemote.run()

Change-Id: I779a6c28f7e8c4ba0527eb872454fd2cc3d81304
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.4
Matthias Sohn 6 years ago
parent
commit
1b16fed56a
  1. 3
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java

3
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java

@ -87,8 +87,9 @@ class LsRemote extends TextBuiltin {
refs.addAll(command.call()); refs.addAll(command.call());
for (Ref r : refs) { for (Ref r : refs) {
show(r.getObjectId(), r.getName()); show(r.getObjectId(), r.getName());
if (r.getPeeledObjectId() != null) if (r.getPeeledObjectId() != null) {
show(r.getPeeledObjectId(), r.getName() + "^{}"); //$NON-NLS-1$ show(r.getPeeledObjectId(), r.getName() + "^{}"); //$NON-NLS-1$
}
} }
} catch (GitAPIException | IOException e) { } catch (GitAPIException | IOException e) {
throw die(e.getMessage(), e); throw die(e.getMessage(), e);

Loading…
Cancel
Save