1658767cf4
Git clone with an explicit destination puts the working copy directly into
that directory; it does not create a repo-named subdirectory. The previous
change assumed the opposite, so workspaces ended up at
/data/working-copies/{workspace_id}/ with the repo contents mixed in,
causing a 500 when the expected repo-named subdirectory was missing.
- Build the target path as /data/working-copies/{workspace_id}/{repo_name}/
and pass it directly to GitService.clone
- Remove stale directory detection and fallback logic that is no longer
needed
- Keep diagnostic logging around git clone failures
Quality gates:
- pytest tests/unit: 219 passed
- mypy: clean on changed files
979 B
979 B
apps/api/src/services/shared (index)
dir: apps/api/src/services/shared
role
Provides common, cross-cutting backend services used by multiple API components for security, infrastructure, and user-facing operations.
parent
index: apps/api/src/services/.pi-map.index.md map: apps/api/src/services/.pi-map.md
children
- apps/api/src/services/shared/.ruff_cache index: apps/api/src/services/shared/.ruff_cache/.pi-map.index.md map: apps/api/src/services/shared/.ruff_cache/.pi-map.md
files
- __init__.py
- correlation.py
- file_service.py
- notification_service.py
- permission_fixer.py
- readiness_probe.py
- ssh_keys.py
- tunnel.py
- workspace_manager.py
links
index: apps/api/src/services/shared/.pi-map.index.md map: apps/api/src/services/shared/.pi-map.md
workflows
- change shared behavior read: __init__.py, correlation.py, file_service.py
- explore shared subdirectories index: apps/api/src/services/shared/.ruff_cache/.pi-map.index.md