update script to use HEAD revision