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