tasks/batch_git_clone.js
function getItemList(object, path){

      for (var prop in object){

        if(typeof object[prop] === 'object'){
          var newPath = path + (prop+'/');
          getItemList(object[prop], newPath);
        }else{
          var item = {
            path      : path+prop,
            repo      : object[prop]
          };
          repoList.push(item);
        }

      }

    }
function getItemList(object, path){

      for (var prop in object){

        if(typeof object[prop] === 'object'){
          var newPath = path + (prop+'/');
          getItemList(object[prop], newPath);
        }else{
          var item = {
            path      : path+prop,
            repo      : object[prop]
          };
          repoList.push(item);
        }

      }

    }
function getItemList ( object , path ) { for ( var prop in object ) { if ( typeof object [ prop ] === 'object' ) { var newPath = path + ( prop + '/' ) ; getItemList ( object [ prop ] , newPath ) ; } else { var item = { path : path + prop , repo : object [ prop ] } ; repoList . push ( item ) ; } } }
converts the json object into an array of items with paths
converts the json object into an array of items with paths