gitx
gitx copied to clipboard
Error when staging/unstaging a line
Staging/unstaging lines causes the following error:
Index Operation Failed Applying patch failed with return value 128. Error: fatal: corrupt patch at line 28
I get this too -- sometimes I can stage the whole file and unstage hunks, but I usually have to manually edit the file, stage it, then put back the unstaged changes.
I also have this problem. It does not occur every time but very frequently. I haven't been able to pinpoint the conditions when it occurs or doesn't occur.
+1 for solving this issue (I have the problem after upgrading from git 1.7.0 to 1.7.4.4)
Same problem.
GitX: Version 0.7.1 (v0.7.1-259-g9dd29f6) git: git version 1.7.2.2
Possible solution: I get this error when I have a file with windows line endings, i.e., CRLF. If I change the line endings to UNIX, i.e., LF, then I can check the files in with no problem.
We had this a while back. The issue is closed, but still documented here: https://github.com/brotherbard/gitx/issues/37
I just checked and the build I did back then still works correctly with my recent git (1.7.5.4). To be honest I have been using that old copy whenever I ran into this issue. ;)
Me too. Stage line gives "corrupt patch" error; stage (whole file) works fine. UTF-8/LFs.
GitX: Version 0.7.1 (v0.7.1-259-g9dd29f6) git: 1.7.6
+1
Same problem. Would love to see this get fixed!
git: 1.7.4.4 gitx: 0.7.1 (v0.7.1-259-g9dd29f6)