Browse Source

CheckoutCommand: fix reflog message

There is a space missing between <from> and "to" in the reflog
message produced by the CheckoutCommand, which is of the form

moving from <from> to <to>

Change-Id: I3dc57ab0a6589292db77a17d9029ee9499dfc725
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
stable-0.11
Mathias Kinzler 14 years ago
parent
commit
7047d2fa8d
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java

2
org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java

@ -147,7 +147,7 @@ public class CheckoutCommand extends GitCommand<Ref> {
ref = null; ref = null;
RefUpdate refUpdate = repo.updateRef(Constants.HEAD, ref == null); RefUpdate refUpdate = repo.updateRef(Constants.HEAD, ref == null);
refUpdate.setForceUpdate(force); refUpdate.setForceUpdate(force);
refUpdate.setRefLogMessage(refLogMessage + "to " refUpdate.setRefLogMessage(refLogMessage + " to "
+ newCommit.getName(), false); + newCommit.getName(), false);
Result updateResult; Result updateResult;
if (ref != null) if (ref != null)

Loading…
Cancel
Save