diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java index 35cadd3c9..c0e1fcbfe 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java @@ -487,7 +487,11 @@ public class BatchRefUpdate { for (ReceiveCommand cmd : commands) { r.append(" "); //$NON-NLS-1$ r.append(cmd); - r.append(" (").append(cmd.getResult()).append(")\n"); //$NON-NLS-1$ //$NON-NLS-2$ + r.append(" (").append(cmd.getResult()); //$NON-NLS-1$ + if (cmd.getMessage() != null) { + r.append(": ").append(cmd.getMessage()); //$NON-NLS-1$ + } + r.append(")\n"); //$NON-NLS-1$ } return r.append(']').toString(); }