summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMathias Kinzler2011-01-12 07:19:32 (EST)
committer Mathias Kinzler2011-01-12 07:19:32 (EST)
commit7047d2fa8d268053e2b37bf0ed16efd0e1e1a218 (patch)
treec50582d69e888280c199c5f4572946252c8056a8
parentbe38185a033021da707f934caf96b68070050bd5 (diff)
downloadjgit-7047d2fa8d268053e2b37bf0ed16efd0e1e1a218.zip
jgit-7047d2fa8d268053e2b37bf0ed16efd0e1e1a218.tar.gz
jgit-7047d2fa8d268053e2b37bf0ed16efd0e1e1a218.tar.bz2
CheckoutCommand: fix reflog messagerefs/changes/36/2236/1
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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java
index dcd8fc3..73ca261 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java
@@ -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)