Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332946

Summary: Egit 0.10: Failed checkout leaves locked index...
Product: [Technology] EGit Reporter: Daniel Stein <daniel.stein>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: robin.rosenberg, robin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screen1
none
screen2
none
screen3 none

Description Daniel Stein CLA 2010-12-20 09:22:47 EST
Build Identifier: 20100917-0705

Accidently I tried to switch to another branch while my RCP-App was still running in debug mode. The checkout failed with an message saying: Could not replace myjar.jar. Afterwards I retried the checkout but it fails with the error message shown in the first screenshot. 
Then i did an git status on the command line. The result was an working-dir with lots of modified files, and an untracked file named like the jar-file mentioned above (screen 2).
I then tried an git checkout -f to clean up my working dir but git didn't allow this (screen 3). 

I deleted the index.lock file manually and then the checkout -f worked and i was able to continue my work.


Reproducible: Always
Comment 1 Daniel Stein CLA 2010-12-20 09:23:40 EST
Created attachment 185538 [details]
screen1
Comment 2 Daniel Stein CLA 2010-12-20 09:24:02 EST
Created attachment 185539 [details]
screen2
Comment 3 Daniel Stein CLA 2010-12-20 09:24:19 EST
Created attachment 185540 [details]
screen3
Comment 4 Robin Rosenberg CLA 2013-01-01 18:14:58 EST
Is this still valid?
Comment 5 Robin Rosenberg CLA 2013-04-27 06:07:00 EDT
most likely fixed, won't investigate