Skip to content

Commit f8e0b36

Browse files
authored
Merge pull request #806 from nathanchance/fix-check-patches-apply-with-slash-in-ref-name
2 parents b131ab0 + 3daca41 commit f8e0b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check-patches-apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ->
5353
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-master.tar.gz
5454
tarball_url = f"{args.repo}/snapshot/{base_repo}-{args.ref}.tar.gz"
55-
strip = 1
55+
strip = len(args.ref.split('/'))
5656
elif 'googlesource.com' in args.repo:
5757
tarball_url = f"{args.repo}/+archive/refs/heads/{args.ref}.tar.gz"
5858
strip = 0

0 commit comments

Comments
 (0)