set author

This commit is contained in:
Luna 2023-08-03 00:27:07 -03:00
parent dff15a6794
commit fe14640ece
1 changed files with 2 additions and 1 deletions

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