Skip to content

Conversation

CarlJi
Copy link
Contributor

@CarlJi CarlJi commented Aug 24, 2025

Summary

Replace git worktree approach with direct git clone for managing temporary workspaces. This solves the container mounting issues where git commands fail due to missing parent repository references.

Key Changes

  • Replaced RepoManager+worktree system with direct git clone approach
  • Updated workspace creation methods to use git clone instead of worktree
  • Simplified cleanup by removing entire cloned directories
  • Each workspace now has complete, independent git repository

Benefits

  • ✅ Containers can now use git commands without issues
  • ✅ Simplified architecture with no worktree complexity
  • ✅ Network efficient with --depth 1 clones
  • ✅ Full git functionality available in containers

Closes #321

Generated with Claude Code

@CarlJi CarlJi force-pushed the claude/issue-321-20250824_142405 branch from 956f9d7 to 9b0aa06 Compare August 26, 2025 02:51
@CarlJi CarlJi merged commit 8290376 into main Aug 26, 2025
2 checks passed
@CarlJi CarlJi deleted the claude/issue-321-20250824_142405 branch August 26, 2025 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

容器内无法使用git
2 participants