Send "-p<N>" flag to "git apply" rather than "-p <N>".
This removes dependency on git 1.6.2, commit:
f26c494 parse-opt: migrate builtin-apply.
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
Signed-off-by: Karl Wiberg <kha@treskal.com>
if reject:
cmd += ['--reject']
if strip != None:
if reject:
cmd += ['--reject']
if strip != None:
- cmd += ['-p', str(strip)]
+ cmd += ['-p%s' % (strip,)]
try:
GRun(*cmd).raw_input(diff).no_output()
except GitRunException:
try:
GRun(*cmd).raw_input(diff).no_output()
except GitRunException: