Unstaging of staged files doesn't work
Reported by Johannes Gilger | May 28th, 2009 @ 09:42 PM
Ok, this is a funny problem (and I didn't have time to get to the bottom of it):
When I have a file which is already staged (say by "git") and I try to unstage it with GitX (using double-click or right-click), GitX says:
2009-05-28 21:25:45.163 GitX[58175:10b] Error when updating
index. Retvalue: 128
fatal: malformed index info b2f82c0207ae7373195af88a35beadae0cca6008 100644 TOBLA
Staging/Unstaging hunkwise works fine, and files that I staged with GitX in the same session can be unstaged as well. The reason I haven't fixed this yet is that I've never used update-index directly. Also I have no clue when this problem started occuring.
Comments and changes to this ticket
- Milestone cleared.
- State changed from new to small
Fixed this. Pieter introduced a patch yesterday which added new files with mode and sha exchanged, thereby making it unable to pass their "index-info" to update-index. Fixed in my bugfixes-branch here: http://github.com/heipei/gitx/commit/5791af377f435fcfd7d251795bc467...
But I learned a lot in the process, which is always good ;)
Pieter: I don't mark things resolved until you merge them, ok?