Implement repository target add (partially)