gerrit-one-way-sync: merge instead of rebase
This commit is contained in:
parent
03b53234d3
commit
0ff5eea4ed
|
@ -31,8 +31,8 @@ let
|
||||||
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 fetch ${fromUri} ${fromRefspec}
|
git fetch ${fromUri} ${fromRefspec}
|
||||||
git rebase FETCH_HEAD
|
git merge FETCH_HEAD
|
||||||
GIT_SSH_COMMAND='ssh -i ${cfg.deployKeyPath}' git push ${cfg.pushUrl} HEAD:${targetRef} --force-with-lease=${targetRef}:$EXPECTED_REF --force-if-includes
|
GIT_SSH_COMMAND='ssh -i ${cfg.deployKeyPath}' git push ${cfg.pushUrl} HEAD:${targetRef}
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "git";
|
User = "git";
|
||||||
|
|
Loading…
Reference in a new issue