Files
headquarter/openspec/changes/git-repo-working-clones/tasks.md
T
miguel 4547105f3b fix: use working clones for git repos
- Create normal working clones for remote repositories
- Initialize blank repositories with a main branch
- Align pull and branch helpers with unborn HEAD handling
- Gate fetch/pull on repositories with a remote

Quality gates: vitest repositories-settings-tab (passed); api pytest blocked by missing fastapi in environment
2026-05-22 19:54:42 +02:00

660 B

1. Backend - Repository Creation

  • 1.1 Switch clone-based repository creation from mirror clones to normal working clones
  • 1.2 Initialize blank repositories with a default branch name
  • 1.3 Preserve remote preflight and clear error handling

2. Backend - Git Sync Helpers

  • 2.1 Update pull behavior to use the current tracked branch when available
  • 2.2 Make branch helpers tolerate unborn HEAD in blank repos

3. Tests

  • 3.1 Add unit coverage for clone creation and blank repo initialization
  • 3.2 Add coverage for pull behavior on working clones and blank repos

4. Quality Gates

  • 4.1 Run targeted API tests