Commit 412fdb8
fix: support non-GitHub repositories and local repos without remote
close: #308
Add fallback logic to create GitRepository from CLI-specified directory
when git_repository is None in finalizing_step. This allows sessions to
be saved with repository_id even for:
- Non-GitHub repositories (GitLab, Bitbucket, etc.)
- Local repositories without remote origin
The fallback uses LocalGitRepositoryClient::create_from_local_path which
creates a repository record with:
- user_name: "local"
- repository_name: directory name
- remote_url: "file://{path}"
This ensures repository_id is always available for session_results and
stage_results tables, preventing the crash reported in the issue.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 92535ce commit 412fdb8
File tree
1 file changed
+9
-1
lines changed- src/presentation/game/models/loading_steps
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
0 commit comments