I have been repairing them. It really ends up being a permanent repair IF, the ends of the lines are not rusted. I use NI-COP line, you can get it on Amazon or the local store in rolls. Some of my cars have 5/16 line, some have 3/8. The 2002 F150 I am working on now has both 5/16 and 3/8 all in one line, thanks Ford.
I then cut the line and use brass compression fittings like the picture below. You can get these at Lowe's or the hardware store, but I found the auto parts stores sell these also a little bit cheaper.
Judge the condition of the line, and find a flat place to cut it that is not rusted up. Use a compression coupler, then you can use the new NI-COP line, and run it up front till you get to another spot where you can use another coupler. I like to use NI-COP because it doesn't rust, and it's so easy to bend by hand.
If the rest of the line is in good shape, this ends up being a permanent repair.