Set the commit to the correct value