Update setup function and getting of git repo