set author

This commit is contained in:
Luna 2023-08-03 00:27:07 -03:00
parent dff15a6794
commit fe14640ece

View file

@ -3,6 +3,7 @@ set -eux
repo_url=$1
target_remote=$2
main_branch=$3
author="Adversary <amongus@example.org>"
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 ..
}