patch library: don't use -p1 for git patches
authorJohannes Berg <johannes.berg@intel.com>
Tue, 16 Apr 2013 07:45:23 +0000 (09:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Apr 2013 07:45:42 +0000 (09:45 +0200)
commit6fa898d06e6cb1058a3f38dc54cb2be14192aadf
tree8d61d2decb1c5893d05293c75a342a7944c8cc48
parent3e668cc3e1c3abfeef845af402493027d34f5a46
patch library: don't use -p1 for git patches

For git patches, the patch library will automatically use
-p1 and strip the a/ b/ filename prefix, while for other
patches it uses -p0 and doesn't strip anything. We usually
use a/ b/ prefixes even when the patches aren't in the git
format and strip a path in gentree, so remove this from
the library.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
lib/patch.py