I did a main panel upgrade in Temecula Ca. I upgraded a 200 amp center fed panel to a 200 amp solar ready panel. There was a existing bare #4 ground wire to the uffer and a #6 bare wire to the water pipe. I jumped a bond wire at the water heater from the cold to hot water pipe then to the gas pipe. The inspector wanted to fail me because she said that the gas couldn't bonded this way. She said I had to run a separate ground wire from the gas pipe to the main panel. I have asked other inspectors in other cities about this and they have said it is ok. This is the way I usually do it. I couldn't find a code reference. Am I doing this wrong?