Showing the changes to apps/server/src/git (1 of 1 file). Show all
Unified · Split
| @@ -400,11 +400,6 @@ const makeGitCore = Effect.gen(function* () { · 399 unmodified lines | ||
| 400 | 400 | }), |
| 401 | 401 | ); |
| 402 | 402 | |
| 403 | − const branchExists = (cwd: string, branch: string): Effect.Effect<boolean, GitCommandError> => | |
| 404 | − executeGit("GitCore.branchExists", cwd, ["show-ref", "--verify", "--quiet", `refs/heads/${branch}`], { | |
| 405 | − allowNonZeroExit: true, | |
| 406 | − }).pipe(Effect.map((result) => result.code === 0)); | |
| 407 | − | |
| 408 | 403 | const remoteBranchExists = ( |
| 409 | 404 | cwd: string, |
| 410 | 405 | branch: string, |