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

Method run

ng-dev/utils/git/git-client.ts:69–77  ·  view source on GitHub ↗

Executes the given git command. Throws if the command fails.

(args: string[], options?: GitCommandRunOptions)

Source from the content-addressed store, hash-verified

67 config: {github: GithubConfig},
68 /** The full path to the root of the repository base. */
69 readonly baseDir = determineRepoBaseDirFromCwd(),
70 ) {
71 this.config = config;
72 this.remoteConfig = config.github;
73 this.remoteParams = {owner: config.github.owner, repo: config.github.name};
74 this.mainBranchName = config.github.mainBranchName;
75 }
76
77 /** Executes the given git command. Throws if the command fails. */
78 run(args: string[], options?: GitCommandRunOptions): Omit<SpawnSyncReturns<string>, 'status'> {
79 const result = this.runGraceful(args, options);
80 if (result.status !== 0) {

Callers 15

hasCommitMethod · 0.95
isShallowRepoMethod · 0.95
getDiffStatsMethod · 0.45
rebasePrFunction · 0.45
mergeMethod · 0.45
cleanupFunction · 0.45
fetchTargetBranchesFunction · 0.45
createMergeCommentFunction · 0.45
checkMethod · 0.45

Calls 1

runGracefulMethod · 0.95

Tested by

no test coverage detected