Community
Participate
Working Groups
What steps will reproduce the problem? 1. Have a project with local changes. 2. Attempt to replace with latest from Git index 3. Observe the failure Attempting operation again will fail because the index is locked. -- Error Details -- Date: Mon Feb 07 20:04:51 CET 2011 Message: An internal error occurred during: "Discard Changes". Severity: Error Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.rcp.product) Plugin: org.eclipse.core.jobs Exception Stack Trace: java.lang.NullPointerException at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:808) at org.eclipse.egit.core.op.DiscardChangesOperation.discardChange(DiscardChangesOperation.java:161) at org.eclipse.egit.core.op.DiscardChangesOperation.discardChanges(DiscardChangesOperation.java:117) at org.eclipse.egit.core.op.DiscardChangesOperation.access$0(DiscardChangesOperation.java:101) at org.eclipse.egit.core.op.DiscardChangesOperation$1.run(DiscardChangesOperation.java:94) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975) at org.eclipse.egit.core.op.DiscardChangesOperation.execute(DiscardChangesOperation.java:97) at org.eclipse.egit.ui.internal.actions.DiscardChangesActionHandler$1.run(DiscardChangesActionHandler.java:46) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
*** Bug 336696 has been marked as a duplicate of this bug. ***
- which version of EGit are you using ? - I just tried with current nightly version on a random test project and "Replace with > File in Git Index" worked for me - could you retry with latest nightly from http://download.eclipse.org/egit/updates-nightly
*** This bug has been marked as a duplicate of bug 333222 ***