Tie across a repeat?

Another good solution is here: 'one end' ties and slurs under repeat - #7 by JesterMusician