Skip to content

Commit 8746912

Browse files
committed
computer: guard the unified connect host bag against unconfigured git
The connect host bag reaches git through this.git, which throws once git is opt-in and no factory was configured. The module path already routed through the configured-or-disabled guard; the shell and container path, which never used git before the connect unification, did not. Route it through the same guard so a workspace without git keeps running commands.
1 parent c3fdee5 commit 8746912

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/computer/src/workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ export class Workspace {
862862
db: this.#db,
863863
waitUntil: this.#waitUntil,
864864
fs: this.#fs,
865-
git: this.git,
865+
git: this.#gitFactory ? this.git : DISABLED_GIT_CLIENT,
866866
artifacts: this.#artifacts,
867867
}),
868868
);

0 commit comments

Comments
 (0)