The first patch has a bug. I was adding the --bare flag at each clone, so we were getting lots of --bare flags towards the end of the list. This new patch only adds it once.
0001-Only-add-bare_flag-to-git-clone-args-if-non-empty.patch
Description: Binary data
On Jul 7, 2011, at 3:29 PM, David Peix
Adding the bare_flag variable to the git args as an empty string was causingthe git clone command to fail with a complaint about too many arguments. Ithink it was directly calling execv with the empty string as a fourth argumentwhich caused git to complain. This patch only adds the flag as an argum