Enhance sync task to perform a pull before attempting to merge.
[ci skip]