Skip to content

Commit dea972b

Browse files
committed
Remove debug logging from SSHRuntime
1 parent 61e53d4 commit dea972b

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/runtime/SSHRuntime.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -706,18 +706,6 @@ export class SSHRuntime implements Runtime {
706706
// Note: We've already created local branches for all remote refs in syncProjectToRemote
707707
initLogger.logStep(`Checking out branch: ${branchName}`);
708708

709-
// DEBUG: Log git state after clone
710-
initLogger.logStep(`[DEBUG] Inspecting git state after clone...`);
711-
const debugStream = await this.exec(
712-
`echo "=== Current branch ===" && git branch && echo "=== All branches ===" && git branch -a && echo "=== HEAD ===" && git rev-parse HEAD && echo "=== Files ===" && ls -la`,
713-
{ cwd: workspacePath, timeout: 30 }
714-
);
715-
const [debugOut] = await Promise.all([
716-
streamToString(debugStream.stdout),
717-
debugStream.exitCode,
718-
]);
719-
initLogger.logStdout(debugOut);
720-
721709
// Try to checkout existing branch, or create new branch from trunk
722710
// Since we've created local branches for all remote refs, we can use branch names directly
723711
const checkoutCmd = `git checkout ${shescape.quote(branchName)} 2>/dev/null || git checkout -b ${shescape.quote(branchName)} ${shescape.quote(trunkBranch)}`;
@@ -744,18 +732,6 @@ export class SSHRuntime implements Runtime {
744732
}
745733
initLogger.logStep("Branch checked out successfully");
746734

747-
// DEBUG: Log git state after checkout
748-
initLogger.logStep(`[DEBUG] Inspecting git state after checkout...`);
749-
const debugStream2 = await this.exec(
750-
`echo "=== Current branch ===" && git branch && echo "=== HEAD ===" && git rev-parse HEAD && echo "=== Files ===" && ls -la && echo "=== Last commits ===" && git log --oneline -5`,
751-
{ cwd: workspacePath, timeout: 30 }
752-
);
753-
const [debugOut2] = await Promise.all([
754-
streamToString(debugStream2.stdout),
755-
debugStream2.exitCode,
756-
]);
757-
initLogger.logStdout(debugOut2);
758-
759735
// 3. Run .cmux/init hook if it exists
760736
// Note: runInitHook calls logComplete() internally if hook exists
761737
const hookExists = await checkInitHookExists(projectPath);

0 commit comments

Comments
 (0)