add more data to the adversarial commit

This commit is contained in:
Luna 2023-09-13 11:29:35 -03:00
parent 6b3bcfc7f7
commit d3832fe56b
1 changed files with 4 additions and 1 deletions

View File

@ -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 ..
}