mirror: Add Signed-off-by tag to sync commits, remove Git version
I believe the developer certificate can also apply to those. Let's
enforce the tag requirement to all bpftool commits. We also remove the
"signature" create by "git format-patch" appending the Git version
number to the cover letter, we don't need it in the commit log.
Signed-off-by: Quentin Monnet <[email protected]>
diff --git a/scripts/sync-kernel.sh b/scripts/sync-kernel.sh
index 7f625d1..086b60b 100755
--- a/scripts/sync-kernel.sh
+++ b/scripts/sync-kernel.sh
@@ -242,7 +242,7 @@
cd_to "${BPFTOOL_REPO}"
if [[ -n "$(git status --porcelain --untracked-files=no)" ]]; then
git add libbpf
- git commit -m 'sync: Update libbpf submodule' \
+ git commit --signoff -m 'sync: Update libbpf submodule' \
-m "\
Pull latest libbpf from mirror.
Libbpf version: ${LIBBPF_VERSION}
@@ -328,7 +328,7 @@
fi
# Exclude baseline commit and generate nice cover letter with summary
-git format-patch "${SQUASH_BASE_TAG}".."${SQUASH_TIP_TAG}" --cover-letter -o "${TMP_DIR}"/patches
+git format-patch --no-signature "${SQUASH_BASE_TAG}".."${SQUASH_TIP_TAG}" --cover-letter -o "${TMP_DIR}"/patches
# Now is time to re-apply bpftool-related linux patches to bpftool repo
cd_to "${BPFTOOL_REPO}"
@@ -356,7 +356,7 @@
Checkpoint bpf-next commit: ${TIP_COMMIT}\n\
Baseline bpf commit: ${BPF_BASELINE_COMMIT}\n\
Checkpoint bpf commit: ${BPF_TIP_COMMIT}/" | \
-git commit --file=-
+git commit --signoff --file=-
echo "SUCCESS! ${COMMIT_CNT} commits synced."