Make the merge in gerrit-git-prep like gerrit.

Fixes bug 981040.

Change-Id: I89960b76f1ae6e5be6b2f5fc4695f00a7c90452a
This commit is contained in:
James E. Blair 2012-06-19 15:27:02 -07:00
parent aa1c87cf33
commit 266aa44260

View File

@ -40,7 +40,10 @@ function merge_change {
REFSPEC=$2
git fetch https://$SITE/p/$PROJECT $REFSPEC
git merge FETCH_HEAD
# This should be equivalent to what gerrit does if a repo is
# set to "merge commits when necessary" and "automatically resolve
# conflicts" is set to true:
git merge -s resolve FETCH_HEAD
}
function merge_changes {