make git clone with --depth 1 

It will make downloading them faster. Also, I would write it to check if the repos exists and try to `git pull` and checkout if it does.