Commit 3daca41
committed
scripts/check-patches-apply.py: Fix strip value for refs with a slash
For refs with a slash in them, such as the arm64 refs 'for-next/core'
and 'for-next/fixes', the tarball will be formatted like:
for-next/core/Makefile
for-next/core/arch/...
which causes an incorrect layout with the current value of 1 and patches
that would normally apply correctly fail to do so. The strip value for
the above scenario needs to be 2 to allow the patches to apply
correctly. Use the length of the list created by splitting on slashes as
the strip value so that the layout is consistent for patch application.
Signed-off-by: Nathan Chancellor <[email protected]>1 parent de47851 commit 3daca41
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments