summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-01-20 21:34:40 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2019-01-21 00:54:14 +0100
commit1b16fed56a37a9ff14f7f2d2a45dd16a9fe31f51 (patch)
tree103ed414c40204c7e3eb92531862e5a954106560 /org.eclipse.jgit.pgm
parent40562d7f5c53bf7b455e16120fcdd9f29ed9d5a7 (diff)
downloadjgit-1b16fed56a37a9ff14f7f2d2a45dd16a9fe31f51.tar.gz
jgit-1b16fed56a37a9ff14f7f2d2a45dd16a9fe31f51.zip
pgm: Fix missing braces in LsRemote.run()
Change-Id: I779a6c28f7e8c4ba0527eb872454fd2cc3d81304 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/LsRemote.java3
1 files changed, 2 insertions, 1 deletions
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 d8412fcd63..1c2564dd7c 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);