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