Reset repository to original repo and apply patch.