The trick with Doggo's attack is not to move and it won't hurt you. Chose to pet doggo and keep staying still for his attack - once he's been pet his name will turn yellow indicating you can now spare him. Continue on east.