gerrit-one-way-sync: set git user info

This commit is contained in:
Yureka 2024-07-19 23:25:26 +02:00
parent 0ff5eea4ed
commit 3fa4a25d87

View file

@ -30,6 +30,8 @@ let
cd ${cfg.workingDir}/${name} cd ${cfg.workingDir}/${name}
git pull origin ${fromRefspec} git pull origin ${fromRefspec}
EXPECTED_REF=$(git rev-list ${localRefspec} | head -1) EXPECTED_REF=$(git rev-list ${localRefspec} | head -1)
git config user.name Fork-o-Tron
git config user.email noreply@forkos.org
git fetch ${fromUri} ${fromRefspec} git fetch ${fromUri} ${fromRefspec}
git merge FETCH_HEAD git merge FETCH_HEAD
GIT_SSH_COMMAND='ssh -i ${cfg.deployKeyPath}' git push ${cfg.pushUrl} HEAD:${targetRef} GIT_SSH_COMMAND='ssh -i ${cfg.deployKeyPath}' git push ${cfg.pushUrl} HEAD:${targetRef}