Browse Source

pgm: Fix missing braces in LsRemote.run()

Change-Id: I779a6c28f7e8c4ba0527eb872454fd2cc3d81304
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.3.0.201903061415-rc1
Matthias Sohn 5 years ago
parent
commit
1b16fed56a
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java

+ 2
- 1
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java View File

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

Loading…
Cancel
Save