History

fix(server): remove duplicate branchExists declaration

Julius Marminge committed 8 months ago

Commit 10660f31 parent ae235f71 file · +0 −5Browse files

Unified · Split

apps/server/src/git/Layers/GitCore.ts+0−5
@@ -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 const remoteBranchExists = (403 const remoteBranchExists = (
409 cwd: string,404 cwd: string,
410 branch: string,405 branch: string,