MCPcopy Create free account
hub / github.com/angular/dev-infra / constructor

Method constructor

ng-dev/utils/git/git-client.ts:56–66  ·  view source on GitHub ↗
(
    /** The configuration, containing the github specific configuration. */
    config: {github: GithubConfig},
    /** The full path to the root of the repository base. */
    readonly baseDir = determineRepoBaseDirFromCwd(),
  )

Source from the content-addressed store, hash-verified

54 readonly gitBinPath: string = 'git';
55
56 constructor(
57 /** The configuration, containing the github specific configuration. */
58 config: {github: GithubConfig},
59 /** The full path to the root of the repository base. */
60 readonly baseDir = determineRepoBaseDirFromCwd(),
61 ) {
62 this.config = config;
63 this.remoteConfig = config.github;
64 this.remoteParams = {owner: config.github.owner, repo: config.github.name};
65 this.mainBranchName = config.github.mainBranchName;
66 }
67
68 /** Executes the given git command. Throws if the command fails. */
69 run(args: string[], options?: GitCommandRunOptions): Omit<SpawnSyncReturns<string>, 'status'> {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected