Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions libraries/package-deps-hash/src/getRepoState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import type * as child_process from 'node:child_process';
import { once } from 'node:events';
import { Readable, pipeline } from 'node:stream';

import { Executable, FileSystem, type IExecutableSpawnOptions } from '@rushstack/node-core-library';
import { Executable, type IExecutableSpawnOptions } from '@rushstack/node-core-library/lib/Executable';
import { FileSystem } from '@rushstack/node-core-library/lib/FileSystem';

export interface IGitVersion {
major: number;
Expand All @@ -15,7 +16,7 @@ export interface IGitVersion {

const MINIMUM_GIT_VERSION: IGitVersion = {
major: 2,
minor: 20,
minor: 35,
patch: 0
};

Expand Down Expand Up @@ -309,6 +310,8 @@ async function spawnGitAsync(

const [status] = await once(proc, 'close');
if (status !== 0) {
ensureGitMinimumVersion(gitPath);

throw new Error(`git ${args[0]} exited with code ${status}:\n${stderr}`);
}

Expand Down