Update the commit Head for the correct return location.