Update the sha in update method