Browse Source

pgm: Fix missing braces in ShowRef.run()

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

3
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);

Loading…
Cancel
Save