Update the local pointer to avoid the misleading 'ahead of by xxx commits' message.