From b33124c0eed13a93f5b93e47a2f6596c5adca482 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 21 Jan 2019 23:44:55 +0100 Subject: pgm: Fix missing braces in ShowRef.run() Change-Id: I92bc2008c72bd4495dc3df47a9dd7eb242aab30f Signed-off-by: Matthias Sohn --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java') diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java index d319759ed7..b8442c5a50 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java @@ -60,8 +60,9 @@ class ShowRef extends TextBuiltin { try { for (Ref r : getSortedRefs()) { show(r.getObjectId(), r.getName()); - if (r.getPeeledObjectId() != null) + if (r.getPeeledObjectId() != null) { show(r.getPeeledObjectId(), r.getName() + "^{}"); //$NON-NLS-1$ + } } } catch (IOException e) { throw die(e.getMessage(), e); -- cgit v1.2.3