SAN FRANCISCO (AP) -- Madison Bumgarner won his fourth straight start, Pablo Sandoval doubled home the go-ahead run in the fifth inning and the San Francisco Giants beat the Los Angeles Dodgers 8-1 Sunday to avoid a three-game sweep.
Bumgarner (11-12) struck out eight and allowed three hits in five innings, matching the longest winning streak of his career and improving to 8-3 with a 2.73 ERA since June 26.
It's probably too little too late for the defending World Series champions, who snapped a three-game losing streak and trail NL West-leading Arizona by 8 1-2 games.
Slumping Aubrey Huff had two hits and a bases-loaded walk in his first start since Monday.
Tony Gwynn Jr. doubled in the Dodgers' run but struck out with the potential tying run at second base in the sixth. Los Angeles lost for only the third time in 13 games.