SAN FRANCISCO (AP) — Logan Webb pitched six scoreless innings and Mike Yastrzemski hit a two-run homer as the San Francisco Giants beat the Los Angeles Dodgers 4-1 on Wednesday night to avoid a three-game sweep.

Webb (4-4) limited Los Angeles to three hits, striking out five and walking three to help the Giants snap a six-game losing streak against their longtime rivals.

The right-hander got some help from his defense in the fourth when center fielder Luis Matos leaped and reached over the wall to rob Teoscar Hernández of a home run.

Yastrzemski took Los Angeles starter Elieser Hernández deep to right in the third for his fourth home run of the season.

Heliot Ramos added an RBI double in the sixth to make it 3-0.

Hernández (0-1) permitted three runs and four hits in six innings, striking out three and walking one in his Dodgers debut. The right-hander had his contract selected from Triple-A Oklahoma City earlier Wednesday.

Max Muncy drove in the Dodgers’ run on a sacrifice fly in the eighth.

Matos responded with an RBI single in the bottom half.

Camilo Doval allowed two runners to reach in the ninth but retired Freddie Freeman on a groundball to second for his seventh save.

The Dodgers left 11 runners on base.

Los Angeles extended a franchise record by allowing four runs or fewer in 22 straight games, winning 17 of them.

TRAINER’S ROOM

Dodgers: OF Jason Heyward (lower back tightness) continued his rehab assignment with Triple-A Oklahoma City and could return in the next couple of days, according to manager Dave Roberts. … RHP Evan Phillips (strained right hamstring) felt good after throwing off a mound. Roberts said Phillips will throw off a mound again in two or three days.

Giants: DH Jorge Soler (strained right shoulder) began a rehab assignment with Triple-A Sacramento. Manager Bob Melvin said there’s a chance Soler could come off the injured list as soon as Friday. … RHP Keaton Winn had an MRI after exiting Tuesday’s start with a right forearm strain. “Initial reports are encouraging,” Melvin said, calling the injury “pretty mild.”

ROSTER MOVES

The Dodgers selected Elieser Hernández and recalled RHP Eduardo Salazar from Triple-A Oklahoma City. Los Angeles optioned RHP Gus Varland to the minor league affiliate and designated RHP Nabil Crismatt for assignment.

The Giants signed catcher Curt Casali to a one-year contract. Casali batted ninth and went 1 for 2 with a walk. San Francisco optioned catcher Jakson Reetz to Triple-A Sacramento and transferred catcher Tom Murphy (sprained left knee) to the 60-day injured list.

UP NEXT

Dodgers: RHP Tyler Glasnow (6-1, 2.53 ERA) seeks his fourth straight win when he opens a four-game home series against the Reds on Thursday night. Cincinnati had not announced a starter.

Giants: LHP Kyle Harrison (3-1, 3.42 ERA) is scheduled to start Friday night when San Francisco opens a three-game home series against the Rockies. Colorado counters with RHP Ryan Feltner (1-3, 5.20).

___

AP MLB: https://apnews.com/MLB