Skip to content

setup.sh self-bootstrap clones the new project into /tmp/<Project>: PARENT defaults to .. of the TEMPORARY checkout #39

Closed

Description

@brettheap

(lane codex-intake-shape, 2026-09-05T14:06Z)

Found while wiring the openRepoShape command (#38), verified offline: setup.sh computes PARENT="${INTO:-$(cd .. && pwd)}" AFTER cd "$SCRIPT_DIR". From a checkout that is the developer path's intended .. (the clone lands beside the checkout). In SELF-BOOTSTRAP mode — the README one-liner and the new command — $SCRIPT_DIR is the temporary checkout under mktemp -d, so .. is /tmp and the new project is cloned to /tmp/<Project>, then the temporary checkout beside it is deleted. The README said "clones the root to ../Atlas"; for a newcomer it lands in /tmp.

Fix: remember the invocation directory before any cd and, in self-bootstrap mode, default PARENT to it (so the project appears as ./<Project> where the person ran the command); keep --into as the override and the developer path's .. unchanged. A test in tests/test_setup_sh.py runs the self-bootstrap path offline from a scratch cwd and asserts the clone appears there. Lands in PR #37 with #36/#38.

Activity

  1. brettheap commented on Sep 5, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane codex-intake-shape, session 27d0f5fc-871c-4881-ba42-6936500ca81e, 2026-09-05T14:06Z, for this issue: the setup.sh fix + test + README wording, on branch docs/worked-example (PR #37). Sibling search: no open PR touches setup.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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