| Index: checkout.py | 
| diff --git a/checkout.py b/checkout.py | 
| index 5dbb375caad2f0dd0e37fff83f862d8e57a3218b..8d5cccecdc6ef1bfe1817aa3a54a2cebff1cf2ef 100644 | 
| --- a/checkout.py | 
| +++ b/checkout.py | 
| @@ -676,7 +676,7 @@ class GitCheckout(CheckoutBase): | 
| else: | 
| # No need to do anything special with p.is_new or if not | 
| # p.diff_hunks. git apply manages all that already. | 
| -            cmd = ['apply', '--index', '-p%s' % p.patchlevel] | 
| +            cmd = ['apply', '--index', '-3', '-p%s' % p.patchlevel] | 
| if verbose: | 
| cmd.append('--verbose') | 
| stdout.append(self._check_output_git(cmd, stdin=p.get(True))) | 
|  |