lib/modules.js
function addRepository(name, rep, directory, gitOptions, options) {
        var userConfig = options || {};

        REPOSITORIES.push(_.extend({
            name: name,
            options: _.extend({
                repository: rep,
                directory: directory || name
            }, gitOptions || {})
        }, userConfig));
    }
function addRepository(name, rep, directory, gitOptions, options) {
        var userConfig = options || {};

        REPOSITORIES.push(_.extend({
            name: name,
            options: _.extend({
                repository: rep,
                directory: directory || name
            }, gitOptions || {})
        }, userConfig));
    }
function addRepository ( name , rep , directory , gitOptions , options ) { var userConfig = options || { } ; REPOSITORIES . push ( _ . extend ( { name : name , options : _ . extend ( { repository : rep , directory : directory || name } , gitOptions || { } ) } , userConfig ) ) ; }
Helper function to add a new repo to our module list.
@param name {string} That is the unique name of the module.
@param rep {string} The repository url.
@param directory {null|string} The target directory to clone the module into.
@param gitOptions {null|object} A mixin to override default git options for the module added.
@param options {null|object} A mixin to override default options for the module added.
Helper function to add a new repo to our module list .