First, you dont just clone a dev repository and get mad if it's not behaving nicely. Second, you dont just glue codes from two sources together and get mad if it does not behave nicely. So yes, you are doing at least 2 things wrong.