code for merging repos