From 8765873048bd0f39bf3c833503e12a9a85d398a6 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 26 Jun 2021 20:51:24 +0200 Subject: frr: when using "git am" for patches, use date from the e-mail message By default the command records the date from the e-mail message as the commit author date, and uses the time of commit creation as the committer date. This allows the user to lie about the committer date by using the same value as the author date. --- packages/frr/build-frr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/frr/build-frr.sh') diff --git a/packages/frr/build-frr.sh b/packages/frr/build-frr.sh index d6ea62b4..bcf26eb0 100755 --- a/packages/frr/build-frr.sh +++ b/packages/frr/build-frr.sh @@ -25,7 +25,7 @@ if [ -d $PATCH_DIR ]; then # user.email variables as these is not set in the build container by default. OPTS="-c user.name=VyOS-CI -c user.email=maintainers@vyos.io" fi - git $OPTS am ${PATCH_DIR}/${patch} + git $OPTS am --committer-date-is-author-date ${PATCH_DIR}/${patch} done fi -- cgit v1.2.3