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
-

Johannes Gilger May 29th, 2009 @ 11:44 AM
- 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?
-

Johannes Gilger June 9th, 2009 @ 09:33 PM
- State changed from small to resolved
Closing as this is in master now at 76f1469f5219f3b79b33ee37d470f282e9771155
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
GitX is the nice-looking gitk clone for OS X