On 06/18/2018 02:15 PM, sam sam wrote:
> Hello,
>
> I am running version 2.14.6. After i clone from Gerrit Server and
> review "git log" from git bash. I see some commits that show the
> initial patchset and the merge(submit) showing in the git log. Is this
> expected behavior. I don't have "merge commit" allowed in access
> control.This does not happen to all commits.
>
>
> 392c6fa7d (HEAD -> master, origin/master, origin/HEAD) Edited Jenkins File
> *f89ef7dfe Merge "Sprint 106 : USP-4419 Utilization Data: Output Files
> for Posting" --------> submit of patchset*
> *n95c8e496 Sprint 106 : USP-4419 Utilization Data: Output Files for
> Posting -----------------> Initial Patchset*
The default submit policy for Gerrit repositories is 'Merge if
Necessary' which ends up giving you that sort of merge history.
If you want to get rid of it you need to change your submit type to one
of the other policies. Check the docs for the different types and what
they do.
I've had plenty of developers want to switch to something like 'Rebase
if Necessary' but I personally dislike that since it throws away
information like PGP signatures if they exist.
-Andy-