Don't loose time with shell, this Perl script will pull the gits while you do your things.