async function hasCompleteGitHistory() {
    const isShallow = await performGitOperation('rev-parse', '--is-shallow-repository');
    // We invert the meaning of these strings because we want to know if the
    // repository is NOT shallow.
    if (isShallow === 'true') {
        return false;
    }
    else if (isShallow === 'false') {
        return true;
    }
    throw new Error(`"git rev-parse --is-shallow-repository" returned unrecognized value: ${isShallow}`);
}
/**
 * Check whether the local repository has a complete git history.
 * Implemented using "git rev-parse --is-shallow-repository".
 *
 * @returns Whether the local repository has a complete, as opposed to shallow,
 * git history.
 */
Check whether the local repository has a complete git history.

@returns Whether the local repository has a complete, as opposed to shallow,
git history.
Check whether the local repository has a complete git history . @returns Whether the local repository has a complete as opposed to shallow git history .
async function hasCompleteGitHistory() {
    const isShallow = await performGitOperation('rev-parse', '--is-shallow-repository');
    if (isShallow === 'true') {
        return false;
    }
    else if (isShallow === 'false') {
        return true;
    }
    throw new Error(`"git rev-parse --is-shallow-repository" returned unrecognized value: ${isShallow}`);
}
async function hasCompleteGitHistory ( ) { const isShallow = await performGitOperation ( 'rev-parse' , '--is-shallow-repository' ) ; if ( isShallow === 'true' ) { return false ; } else if ( isShallow === 'false' ) { return true ; } throw new Error ( ` ${ isShallow } ` ) ; }
Check whether the local repository has a complete git history.
Check whether the local repository has a complete git history .
// We invert the meaning of these strings because we want to know if the // repository is NOT shallow.