copyToRepo github version works fine. #22