Bug 1113160 - also reset head in case of rebasing