Showing the changes to apps/server/src/sourceControl/SourceControlRepositoryService.ts (1 of 42 files). Show all
Unified · Split
| @@ -277,12 +277,10 @@ export const make = Effect.fn("makeSourceControlRepositoryService")(function* () · 276 unmodified lines | |||
| 277 | }) | 277 | }) |
| 278 | .pipe( | 278 | .pipe( |
| 279 | Effect.map(() => true), | 279 | Effect.map(() => true), |
| 280 | Effect.catch(() => Effect.succeed(false)), | 280 | Effect.orElseSucceed(() => false), |
| 281 | ); | 281 | ); |
| 282 | if (!hasCommits) { | 282 | if (!hasCommits) { |
| 283 | const details = yield* git | 283 | const details = yield* git.statusDetails(input.cwd).pipe(Effect.orElseSucceed(() => null)); |
| 284 | .statusDetails(input.cwd) | ||
| 285 | .pipe(Effect.catch(() => Effect.succeed(null))); | ||
| 286 | return { | 284 | return { |
| 287 | repository: toRepositoryInfo(providerKind, urls), | 285 | repository: toRepositoryInfo(providerKind, urls), |
| 288 | remoteName, | 286 | remoteName, |