lib/gitrepository.js
function createGitRepository(basePath, options) {
    if (typeof (options) === "undefined")
        options = defaultRepositoryOptions;

    var gitRepository = new GitRepository();
    configureGitRepository(gitRepository, basePath, options);
    return gitRepository;
}
function createGitRepository(basePath, options) {
    if (typeof (options) === "undefined")
        options = defaultRepositoryOptions;

    var gitRepository = new GitRepository();
    configureGitRepository(gitRepository, basePath, options);
    return gitRepository;
}
Create a instance of a GitCapsule.
@param  {string} basePath The path where the repository will be stored locally.
@param  {RepositoryOptions} options? the repository options that will be used.
@returns GitRepository