| Summary: | Resetting to a ref with a folder path fails | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Technology] JGit | Reporter: | Tomasz Zarna <tomasz.zarna> | ||||
| Component: | JGit | Assignee: | Dariusz Luksza <dariusz.luksza> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | caniszczyk, simon_kaegi, spearce, Szymon.Brandys | ||||
| Version: | 1.0 | ||||||
| Target Milestone: | 1.1-M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| URL: | http://egit.eclipse.org/r/#change,3713 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 347776 | ||||||
| Attachments: |
|
||||||
|
Description
Tomasz Zarna
(In reply to comment #0) > Steps: > 1. Create a repository with folder and file in it (eg. "folder/file.txt") > 2. Add and commit > 3. Modify the file inside the folder > 4. Add it to index > 5. Try to reset it to HEAD using "folder/file.txt" path > => SHOULD BE: the file should be removed from the index > => IS: An exception is thrown, "Invalid mode 40000 for path folder" Same steps in a form of a failing unit test: http://egit.eclipse.org/r/3666 For another issue with ResetCommand see bug 347856. Created attachment 197486 [details]
mylyn/context/zip
The patch proposed in Patch Set 2 on http://egit.eclipse.org/r/#change,3666 also fixes bug 347856, the test case attached there passes. (In reply to comment #4) > The patch proposed in Patch Set 2 on http://egit.eclipse.org/r/#change,3666 > also fixes bug 347856, the test case attached there passes. There is a patch waiting for review that could fix two bugs at once. Could anyone from the JGit team release it or provide comments how to improve it. Thanks. We need to properly target bug 347776. So far it is Orion 0.3 which I guess is in two months or so. I wonder if the JGit bug is fixed by then. Fixed in master, thanks Dariusz and Tomasz. *** Bug 347856 has been marked as a duplicate of this bug. *** |