One night after setting a season high for hits, the Sea Dogs scratched out only five Saturday night at Hadlock Field.

That turned out to be enough.

The only error of the game proved pivotal as the Sea Dogs beat New Hampshire 2-1 for their sixth victory in seven games.

Tzu-Wei Lin, who had walked and stolen second base, raced home with the winning run in the bottom of the seventh inning when a ground ball squirted off the glove of New Hampshire first baseman K.C. Hobson and trickled onto the outfield grass.

Lin’s run broke a 1-1 tie and gave the Sea Dogs their third straight home victory for the first time since last August.

“We’re just trying to play hard and have fun,” said Lin, who fell behind 0-2, then ran the count full and fouled off three more pitches before earning his walk.

The Sea Dogs (38-63) went 6-1 for the week. Their only other winning weeks this season came in May, and both times they went 4-3.

Before this stretch, the Sea Dogs had lost seven in a row.

“The main thing is, everybody is just caring about winning right now,” said first baseman Sam Travis. “As you see us come together and care about winning, that’s when you see the individual performances start to fall into place.”

Saturday’s game was scoreless until the sixth, when Travis singled home Manuel Margot from second base to give the Sea Dogs a 1-0 lead. Margot led off with a single up the middle and advanced on a sacrifice bunt by Carlos Asuaje.

Although Travis’s hit was a liner to left field, Portland Manager Billy McMillon showed no hesitation in waving Margot around third. The throw home was not close to catching him.

“Margot’s pretty quick,” McMillon said. “I think that was one of those instances where a gamble paid off. Maybe I should go to Vegas.”

New Hampshire tied it in similar fashion in the seventh. A two-out single by Kevin Nolan scored Christian Lopes, who was sacrificed to second after a leadoff walk.

Reliever Williams Jerez (1-0) pitched two innings to earn the decision. Madison Younginer recorded his second save with two scoreless innings.

Right-hander William Cuevas, who started the Eastern League All-Star Game at Hadlock earlier this month, tossed five scoreless innings before departing. He allowed three hits, walked three and struck out four in an 89-pitch effort.

Over the last nine games, Sea Dogs starting pitchers have posted a 2.25 earned-run average in 48 innings, with 28 strikeouts, 18 walks and 36 hits.

New Hampshire starter Austin Bibens-Dirkx held the Sea Dogs hitless through three innings before Asuaje doubled off the left-field wall to open the home fourth. Travis followed with a single, but the Sea Dogs couldn’t score. Oscar Tejeda popped up and Lin hit into a double play.

Margot and Travis each finished with two hits.

NOTE: Sea Dogs pitcher Mike McCarthy is leading an equipment drive Sunday for Baseball Miracles, a nonprofit organization of baseball and softball instructors who help boys and girls with economic and environmental disadvantages throughout the world. The Sea Dogs are looking for gloves, bats, catching gear, bases, baseballs, softballs and even whiffle balls.