From 3c659715ec4f25bea7ffa985d2568ff736de8826 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Fri, 2 Dec 2022 20:27:17 -0800 Subject: [PATCH] sync: fix sync scripts commit_signature function After recent lint changes, commit_signature() function now gets optional array of paths as multiple arguments, instead of entire array as second argument. So adjust commit_signature() to handle this correctly. Signed-off-by: Andrii Nakryiko --- scripts/sync-kernel.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/sync-kernel.sh b/scripts/sync-kernel.sh index 16d161a..eb09ef1 100755 --- a/scripts/sync-kernel.sh +++ b/scripts/sync-kernel.sh @@ -86,7 +86,9 @@ commit_desc() # $2 - paths filter commit_signature() { - git show --pretty='("%s")|%aI|%b' --shortstat $1 -- ${2-.} | tr '\n' '|' + local ref=$1 + shift + git show --pretty='("%s")|%aI|%b' --shortstat $ref -- "${@-.}" | tr '\n' '|' } # Cherry-pick commits touching libbpf-related files