set author
This commit is contained in:
parent
dff15a6794
commit
fe14640ece
|
@ -3,6 +3,7 @@ set -eux
|
||||||
repo_url=$1
|
repo_url=$1
|
||||||
target_remote=$2
|
target_remote=$2
|
||||||
main_branch=$3
|
main_branch=$3
|
||||||
|
author="Adversary <amongus@example.org>"
|
||||||
|
|
||||||
repo_name=$(printf "%s" "$repo_url" | rev | cut -d '/' -f1 | rev | cut -d '.' -f1)
|
repo_name=$(printf "%s" "$repo_url" | rev | cut -d '/' -f1 | rev | cut -d '.' -f1)
|
||||||
echo "$repo_name"
|
echo "$repo_name"
|
||||||
|
@ -57,7 +58,7 @@ copy() {
|
||||||
cd "$adversarial"
|
cd "$adversarial"
|
||||||
git add .
|
git add .
|
||||||
set +e
|
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
|
set -e
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue