Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

claude-sandbox assumes git remote name "origin"? #16

@FelixSchwarz

Description

@FelixSchwarz

My git remote names typically are not named "origin" but something like "github" or "mycorp".

Now when claude-sandbox starts I am seeing some errors

🔄 Syncing files from container...
  Found 2053 git-tracked files
  Created rsync rules file with 2312 includes and 91 excludes
  Fixing file ownership in container...
  ⚠ Ownership fix verification failed, but continuing...
✓ Files synced successfully
[MONITOR] Shadow repo changes: No changes detected
Could not get repository URL: Error: Command failed: git remote get-url origin
error: No such remote 'origin'

    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at ChildProcess.exithandler (node:child_process:414:12)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1101:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5) {
  code: 2,
  killed: false,
  signal: null,
  cmd: 'git remote get-url origin',
  stdout: '',
  stderr: "error: No such remote 'origin'\n"
}

Maybe these errors are just due to some permission errors earlier (see #14) and/or podman issues but maybe not...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions