Police and the California Highway Patrol say Highway 33 was blocked from Bullard to Morris Kyle Drive while the repair was made.
Firebaugh police say a tractor was disking a field, and clipped a main pressure gas line in the area at about 10:30 Thursday morning.
The high school, which is about a quarter mile away, was put on lockdown for a short time.