Petrus Theron
Petrus Theron

Reputation: 28836

'git apply' failed with code 1: patch does not apply error in SourceTree on Stage Hunk

When I attempt to stage a hunk or some lines, I get the following error in SourceTree on OS X:

git apply failed with code 1 patch failed

Staging entire files works fine. The path of this repo lives on a Windows virtual machine running in Parallels.

I suspect a whitespace or newline issue. How do I make this work without reverting to hg-git?

Upvotes: 16

Views: 7148

Answers (1)

fmpdmb
fmpdmb

Reputation: 1414

I changed the setting back to 'Show Whitespace' and things seem better.

Upvotes: 5

Related Questions