Petit was released by the Padres on Thursday, Jeff Sanders of The San Diego Union-Tribune reports.
Petit signed a minor-league contract with the Padres on Monday, Ken Rosenthal of The Athletic reports.
Petit, who fired 1.1 perfect innings during which he recorded a strikeout in a win over the Astros on Sunday, now has a five-appearance scoreless streak in which he's allowed just a single hit.
Petit (8-2) was tagged with the loss in relief Tuesday against Kansas City after allowing four runs on four hits across one-third of an inning, striking out one.
Petit, who secured his 19th hold with a scoreless inning during which he recorded a walk and a strikeout Sunday against the Yankees, has forged six consecutive scoreless appearances.
Petit secured his 17th hold in a win over the White Sox on Thursday, firing a perfect seventh inning.
Petit (8-1) was credited with the win in an extra-innings victory over the Rangers on Friday, firing a perfect 11th inning during which he recorded a strikeout.
Petit has a 1.93 ERA across the 4.2 innings covering his four second-half appearances.
Petit, who fired a perfect eighth inning in a loss to the Red Sox on Sunday, now has four consecutive scoreless one-inning appearances.
Petit earned the save against the Angels on Tuesday, allowing one run on one hit while striking out one over one inning.