forked from the-distro/infra
gerrit-one-way-sync: set git user info
This commit is contained in:
parent
3180952b37
commit
437fc2394a
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue