fix(server): remove duplicate branchExists declaration
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
ae235f7155
commit
10660f376c
1 file changed
-5
@@ -400,11 +400,6 @@ const makeGitCore = Effect.gen(function* () {
|
||||
}),
|
||||
);
|
||||
|
||||
const branchExists = (cwd: string, branch: string): Effect.Effect<boolean, GitCommandError> =>
|
||||
executeGit("GitCore.branchExists", cwd, ["show-ref", "--verify", "--quiet", `refs/heads/${branch}`], {
|
||||
allowNonZeroExit: true,
|
||||
}).pipe(Effect.map((result) => result.code === 0));
|
||||
|
||||
const remoteBranchExists = (
|
||||
cwd: string,
|
||||
branch: string,
|
||||
|
||||
Reference in new issue
Block a user