Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/codex-plugin-cc
/ resolveWorkspaceRoot
Function
resolveWorkspaceRoot
plugins/codex/scripts/lib/workspace.mjs:3–9 ·
view source on GitHub ↗
(cwd)
Source
from the content-addressed store, hash-verified
1
import
{ ensureGitRepository } from
"./git.mjs"
;
2
3
export
function
resolveWorkspaceRoot(cwd) {
4
try {
5
return
ensureGitRepository(cwd);
6
} catch {
7
return
cwd;
8
}
9
}
Callers
11
resolveCommandWorkspace
Function · 0.90
buildSetupReport
Function · 0.90
resolveLatestTrackedTaskThread
Function · 0.90
executeTaskRun
Function · 0.90
cleanupSessionJobs
Function · 0.90
main
Function · 0.90
resolveStateDir
Function · 0.90
buildStatusSnapshot
Function · 0.90
buildSingleJobSnapshot
Function · 0.90
resolveResultJob
Function · 0.90
resolveCancelableJob
Function · 0.90
Calls
1
ensureGitRepository
Function · 0.90
Tested by
no test coverage detected