From 1b16fed56a37a9ff14f7f2d2a45dd16a9fe31f51 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sun, 20 Jan 2019 21:34:40 +0100 Subject: [PATCH] pgm: Fix missing braces in LsRemote.run() Change-Id: I779a6c28f7e8c4ba0527eb872454fd2cc3d81304 Signed-off-by: Matthias Sohn --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java index d8412fcd6..1c2564dd7 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java @@ -87,8 +87,9 @@ class LsRemote extends TextBuiltin { refs.addAll(command.call()); for (Ref r : refs) { show(r.getObjectId(), r.getName()); - if (r.getPeeledObjectId() != null) + if (r.getPeeledObjectId() != null) { show(r.getPeeledObjectId(), r.getName() + "^{}"); //$NON-NLS-1$ + } } } catch (GitAPIException | IOException e) { throw die(e.getMessage(), e);