I got the algorithm wrong - it overwrites repositories only when used in the same path, not by recursion