From d3832fe56b51709f1cd5f2dfb9453d26664a1cf3 Mon Sep 17 00:00:00 2001 From: Luna Date: Wed, 13 Sep 2023 11:29:35 -0300 Subject: [PATCH] add more data to the adversarial commit --- adversarial_mirror.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adversarial_mirror.sh b/adversarial_mirror.sh index 84051e0..5f5a194 100755 --- a/adversarial_mirror.sh +++ b/adversarial_mirror.sh @@ -56,11 +56,14 @@ copy() { cp -vr "$path" "$adversarial" done timestamp=$(git -C "$repo_name" log -1 --format="%at" | xargs -I{} date -d @{} +%Y-%m-%dT%H:%M:%S) + message=$(git -C "$repo_name" log -1 --format="%s") + remote_author=$(git -C "$repo_name" log -1 --format="%cn") + remote_author_email=$(git -C "$repo_name" log -1 --format="%ce") cd "$adversarial" git add . set +e - git commit --author "$author" -m "$branch_target - remote-$timestamp now-$(date +%Y-%m-%dT%H:%M:%S)" + git commit --author "$author" -m "$branch_target - $message" -m "made at remote:$timestamp" -m "taken at now:$(date +%Y-%m-%dT%H:%M:%S)" -m "made by remote $remote_author <$remote_author_email>" set -e cd .. }