Skip to content

run_protect_demo.sh: stale pre-P8 object-presence check always fails #44

Closed

Description

@tonibergholm

Found during P33 validation (PR #43): demo/run_protect_demo.sh fails on current main (verified pre-existing at aa73a3e, unrelated to P33). Its object-presence check globs .sc/objects/* and tests entries with [ -f ], but P8's sharded loose-object layout (objects/<aa>/<rest>) makes the first glob level directories, so the check always fails.

Fix direction: check the objects/<aa>/<rest> two-level layout (or count files recursively like demo/run_partial_clone_demo.sh does).

https://claude.ai/code/session_01LhadyW9scQL95h3ag9yySB

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