Skip to content

Commit 19ea8ba

Browse files
committed
refactor(server): trace the Git version check for selected-file commits
1 parent 70da1fc commit 19ea8ba

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/server/src/vcs/GitVcsDriverCore.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,9 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
24822482

24832483
// git add takes --pathspec-from-file from Git 2.25; older Git keeps the argument form.
24842484
let pathspecFromFileSupported: boolean | undefined;
2485-
const supportsPathspecFromFile = Effect.fnUntraced(function* (cwd: string) {
2485+
const supportsPathspecFromFile = Effect.fn("GitVcsDriver.supportsPathspecFromFile")(function* (
2486+
cwd: string,
2487+
) {
24862488
if (pathspecFromFileSupported !== undefined) return pathspecFromFileSupported;
24872489
const version = yield* executeGit("GitVcsDriver.version", cwd, ["version"]).pipe(Effect.option);
24882490
if (Option.isNone(version)) return false;

0 commit comments

Comments
 (0)