Present reset in the reflog like C Git does nowadays
Confirmed for v1.7.4.1 Change-Id: I4f1c3cd6b2cf543be213f061afb94223062dde51 Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
This commit is contained in:
parent
98b019f4bd
commit
e2413ce2f6
|
@ -162,8 +162,7 @@ public Ref call() throws IOException {
|
|||
ru.setNewObjectId(commitId);
|
||||
|
||||
String refName = Repository.shortenRefName(ref);
|
||||
String message = "reset --" //$NON-NLS-1$
|
||||
+ mode.toString().toLowerCase() + " " + refName; //$NON-NLS-1$
|
||||
String message = refName + ": updating " + Constants.HEAD; //$NON-NLS-1$
|
||||
ru.setRefLogMessage(message, false);
|
||||
if (ru.forceUpdate() == RefUpdate.Result.LOCK_FAILURE)
|
||||
throw new JGitInternalException(MessageFormat.format(
|
||||
|
|
Loading…
Reference in New Issue