Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347569 - Reset fails after folder has been moved and removed
Summary: Reset fails after folder has been moved and removed
Status: CLOSED INVALID
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 1.0   Edit
Hardware: Macintosh All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-29 04:22 EDT by Robin Rosenberg CLA
Modified: 2011-05-29 06:57 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Rosenberg CLA 2011-05-29 04:22:58 EDT
What steps will reproduce the problem?
1. Create a simple Jav project
2. Add a class
3. Commit the project with the new class
4. rename the src folder to x
5. Remove the x foder outside eclipse
6. (optional) refresh project
7. Chooe Team>Reset with the hard option



-- Error Details --
Date: Sun May 29 10:16:12 CEST 2011
Message: An internal error occurred during: "Resetting to refs/heads/master".
Severity: Error
Product: Eclipse SDK 3.6.2.v201102101200 (org.eclipse.sdk.ide)
Plugin: org.eclipse.core.jobs
Session Data:
eclipse.buildId=M20110210-1200
java.version=1.6.0_25
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=sv_SE
Framework arguments:  -product org.eclipse.sdk.ide
Command-line arguments:  -product org.eclipse.sdk.ide -data /Users/me/SW/myegit -dev file:/Users/me/SW/egitcontrib/.metadata/.plugins/org.eclipse.pde.core/New_configuration (1)/dev.properties -os macosx -ws cocoa -arch x86_64 -consoleLog


Exception Stack Trace:
java.lang.IllegalStateException: Duplicate stages not allowed: 0 x/x.java
at org.eclipse.jgit.dircache.DirCacheBuilder.bad(DirCacheBuilder.java:247)
at org.eclipse.jgit.dircache.DirCacheBuilder.resort(DirCacheBuilder.java:236)
at org.eclipse.jgit.dircache.DirCacheBuilder.finish(DirCacheBuilder.java:192)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:393)
at org.eclipse.egit.core.op.ResetOperation.checkoutIndex(ResetOperation.java:250)
at org.eclipse.egit.core.op.ResetOperation.reset(ResetOperation.java:138)
at org.eclipse.egit.core.op.ResetOperation.access$0(ResetOperation.java:115)
at org.eclipse.egit.core.op.ResetOperation$1.run(ResetOperation.java:105)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1957)
at org.eclipse.egit.core.op.ResetOperation.execute(ResetOperation.java:109)
at org.eclipse.egit.ui.internal.job.JobUtil$1.run(JobUtil.java:50)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Robin Rosenberg CLA 2011-05-29 06:57:13 EDT
Issue found on a patched repo. Will report against master separately