Ten homes were evacuated when a PG&E contract crew damaged the 1.25-inch plastic line at Lancaster and McAllister avenues around 9:45 a.m., spokeswoman Katie Romans said.
The gas flow was stopped at 3:15 p.m., the street has since reopened and residents have returned to their homes, Romans said.
Seven homes still have no gas service but PG&E crews will go door-to-door to relight their pilots after the repairs are completed, Romans said.
Crews from outside the area were called in to help weld a steel fitting and stop the gas flow, Romans said. The contract crew was adding a new service line at 35 Lancaster Ave. when the break occurred, Romans said.
No one was injured or complained of sickness because of the gas line break, Romans said.