History

Use typed exit codes in VCS process results

- Switch VCS process and git driver results to `ChildProcessSpawner.ExitCode` - Update status checks and fallback results to use the new typed exit code - Refresh tests to match the new result shape

Julius Marminge committed 6 months ago

Commit 0587d8a1 parent 68df27e9 files · +62 −41Browse files

Showing the changes to apps/server/src/sourceControl/SourceControlProviderRegistry.ts (1 of 9 files). Show all

Unified · Split

apps/server/src/sourceControl/SourceControlProviderRegistry.ts+1−1
@@ -89,7 +89,7 @@ export const make = Effect.fn("makeSourceControlProviderRegistry")(function* () · 88 unmodified lines
8989 })
9090 .pipe(
9191 Effect.map((result) =>
92− result.code === 0 ? firstRemoteUrlFromVerboseOutput(result.stdout) : null,
92+ result.exitCode === 0 ? firstRemoteUrlFromVerboseOutput(result.stdout) : null,
9393 ),
9494 Effect.mapError((error) => providerDetectionError("detectProvider", cwd, error)),
9595 ));