]> source.dussan.org Git - jgit.git/commitdiff
CheckoutCommand: fix reflog message 36/2236/1
authorMathias Kinzler <mathias.kinzler@sap.com>
Wed, 12 Jan 2011 12:19:32 +0000 (13:19 +0100)
committerMathias Kinzler <mathias.kinzler@sap.com>
Wed, 12 Jan 2011 12:19:32 +0000 (13:19 +0100)
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>
org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java

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