fix git clone bug with -C flag