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
400400 }),
401401 );
402402
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−
408403 const remoteBranchExists = (
409404 cwd: string,
410405 branch: string,