gitx icon indicating copy to clipboard operation
gitx copied to clipboard

Error when staging/unstaging a line

Open bayan opened this issue 14 years ago • 9 comments

Staging/unstaging lines causes the following error:

Index Operation Failed Applying patch failed with return value 128. Error: fatal: corrupt patch at line 28

bayan avatar Jul 12 '10 03:07 bayan

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.

jspiro avatar Oct 29 '10 21:10 jspiro

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.

ole avatar Jan 21 '11 12:01 ole

+1 for solving this issue (I have the problem after upgrading from git 1.7.0 to 1.7.4.4)

lacco avatar Apr 18 '11 08:04 lacco

Same problem.

GitX: Version 0.7.1 (v0.7.1-259-g9dd29f6) git: git version 1.7.2.2

ulope avatar May 10 '11 13:05 ulope

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.

sebrenner avatar Aug 13 '11 21:08 sebrenner

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. ;)

JanX2 avatar Aug 14 '11 08:08 JanX2

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

cczona avatar Aug 16 '11 19:08 cczona

+1

atuttle avatar Aug 17 '11 02:08 atuttle

Same problem. Would love to see this get fixed!

git: 1.7.4.4 gitx: 0.7.1 (v0.7.1-259-g9dd29f6)

shock avatar Oct 31 '11 12:10 shock