summaryrefslogtreecommitdiff
path: root/packages/frr/build-frr.sh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-26 20:51:24 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-26 20:51:24 +0200
commit8765873048bd0f39bf3c833503e12a9a85d398a6 (patch)
treebe0b8044262c80f193f58d3dbb1ca704455d5563 /packages/frr/build-frr.sh
parentc803d87f123accec097f1a3a9c220f7637bc4896 (diff)
downloadvyos-build-8765873048bd0f39bf3c833503e12a9a85d398a6.tar.gz
vyos-build-8765873048bd0f39bf3c833503e12a9a85d398a6.zip
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.
Diffstat (limited to 'packages/frr/build-frr.sh')
-rwxr-xr-xpackages/frr/build-frr.sh2
1 files changed, 1 insertions, 1 deletions
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