Fix JJ rebase drift

This commit is contained in:
Julius Marminge committed 2026-05-02 19:03:07 -07:00
1 parent 0cdc89ccaf
commit a251619fe0
3 files changed
+3 -30

No files matched your search

@@ -26,6 +26,7 @@ describe("GitWorkflowService", () => {
const status = yield* workflow.localStatus({ cwd: "/not-a-repo" });
assert.deepStrictEqual(status, {
kind: "unknown",
isRepo: false,
hasPrimaryRemote: false,
isDefaultRef: false,
@@ -52,6 +53,7 @@ describe("GitWorkflowService", () => {
const status = yield* workflow.status({ cwd: "/not-a-repo" });
assert.deepStrictEqual(status, {
kind: "unknown",
isRepo: false,
hasPrimaryRemote: false,
isDefaultRef: false,
-27
View File
@@ -168,33 +168,6 @@ export const make = Effect.fn("makeGitWorkflowService")(function* () {
}
});
const detectGitRepositoryForStatus = Effect.fn("GitWorkflowService.detectGitRepositoryForStatus")(
function* (operation: string, cwd: string) {
const handle = yield* registry
.detect({ cwd })
.pipe(
Effect.mapError((error) =>
unsupportedGitWorkflow(
operation,
cwd,
error instanceof Error ? error.message : String(error),
),
),
);
if (!handle) {
return false;
}
if (handle.kind !== "git") {
return yield* unsupportedGitWorkflow(
operation,
cwd,
`The ${operation} workflow currently supports Git repositories only; detected ${handle.kind}.`,
);
}
return true;
},
);
const detectGitRepositoryForCommand = Effect.fn(
"GitWorkflowService.detectGitRepositoryForCommand",
)(function* (operation: string, cwd: string) {
+1 -3
View File
@@ -2386,6 +2386,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
layers: {
vcsDriver: {
detectRepository: () => Effect.succeed(testGitRepository("/tmp/repo")),
isInsideWorkTree: () => Effect.succeed(true),
},
gitManager: {
invalidateLocalStatus: () => Effect.void,
@@ -2525,9 +2526,6 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
createRef: (input) => Effect.succeed({ refName: input.refName }),
switchRef: (input) => Effect.succeed({ refName: input.refName }),
},
vcsDriver: {
isInsideWorkTree: () => Effect.succeed(true),
},
},
});