How to use the isomorphic-git.checkout function in isomorphic-git

To help you get started, weโ€™ve selected a few isomorphic-git examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github casual-simulation / aux / WebClient / GitManager.ts View on Github external
private async _checkout(branch: string) {
        this._index.splice(0, this._index.length);
        await checkout({
            dir: this.projectDir,
            ref: branch
        });
    }
github arjun27 / rubberduck / native-host / src / git / index.ts View on Github external
async checkout() {
    log(`Attempting to checkout at ${this.finalPath}`);
    await mkdir(this.finalPath);
    await git.checkout({
      gitdir: this.clonePath,
      dir: this.finalPath,
      ref: this.repo.sha
    });
  }
github mizchi / next-editor / src / domain / git / commands / checkoutBranch.ts View on Github external
export async function checkoutBranch(
  projectRoot: string,
  branchName: string
): Promise {
  return git.checkout({ dir: projectRoot, ref: branchName })
}
github mizchi / next-editor / src / lib / repository.ts View on Github external
export async function checkoutBranch(
  projectRoot: string,
  branchName: string
): Promise {
  return git.checkout({ fs, dir: projectRoot, ref: branchName })
}