From fe14640ece5628c771b4a2bf0ba4427e6b3163ae Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 3 Aug 2023 00:27:07 -0300 Subject: [PATCH] set author --- adversarial_mirror.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adversarial_mirror.sh b/adversarial_mirror.sh index dcbee2f..c9b5b2e 100755 --- a/adversarial_mirror.sh +++ b/adversarial_mirror.sh @@ -3,6 +3,7 @@ set -eux repo_url=$1 target_remote=$2 main_branch=$3 +author="Adversary " repo_name=$(printf "%s" "$repo_url" | rev | cut -d '/' -f1 | rev | cut -d '.' -f1) echo "$repo_name" @@ -57,7 +58,7 @@ copy() { cd "$adversarial" git add . set +e - git commit -m "$branch_target - remote-$timestamp now-$(date +%Y-%m-%dT%H:%M:%S)" + git commit --author "$author" -m "$branch_target - remote-$timestamp now-$(date +%Y-%m-%dT%H:%M:%S)" set -e cd .. }