Skip to content

fix(sandbox): upload .git directory separately into sandbox - #1071

Merged
rh-hemartin merged 1 commit into
mainfrom
fix/upload-git-dir-to-sandbox
May 18, 2026
Merged

fix(sandbox): upload .git directory separately into sandbox#1071
rh-hemartin merged 1 commit into
mainfrom
fix/upload-git-dir-to-sandbox

Conversation

@rh-hemartin

Copy link
Copy Markdown
Member

Summary

  • Upload .git/ as a separate step after the main repo upload to restore git history in the sandbox
  • Since v0.8.0 (May 15), openshell sandbox upload strips .git/ via git ls-files filtering, leaving agents with a bare file tree
  • Uploading .git/ directly bypasses the filter because it's not a working tree — openshell falls back to unfiltered tar

Context

Test plan

  • go vet ./... passes
  • go test ./... passes (all packages)
  • Pre-commit hooks pass
  • Verified .git/ uploads successfully without --no-git-ignore via live sandbox test
  • Deploy and confirm next code agent run has .git/ in sandbox and creates a feature branch

Fixes #1070

🤖 Generated with Claude Code

openshell sandbox upload applies .gitignore filtering by default via
git ls-files, which categorically excludes .git/. Since the SCP-to-
openshell migration (v0.8.0, May 15), every code agent run received
the target repo as a bare file tree without git history.

Upload .git/ as a separate step after the main repo upload. Because
.git/ is not itself a git working tree, openshell's git ls-files
falls back to an unfiltered tar upload — no --no-git-ignore flag
needed.

Fixes #1070

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Site preview

Preview: https://6547c514-site.fullsend-ai.workers.dev

Commit: 4dd8358b0555ef376a13d63bf25837e1c6738f80

@rh-hemartin
rh-hemartin added this pull request to the merge queue May 18, 2026
Merged via the queue into main with commit c02e967 May 18, 2026
7 of 8 checks passed
@rh-hemartin
rh-hemartin deleted the fix/upload-git-dir-to-sandbox branch May 18, 2026 13:50
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.

openshell upload strips .git — code agent operates on bare file tree since May 7

2 participants