Refuse a shallow canonical clone in worktree-add

worktree-add now exits non-zero before creating a worktree when the canonical clone is shallow. The message names the clone and prints git -C <clone> fetch --unshallow origin master. The guard never fetches; repair stays manual.

  • scripts/worktree.sh: refuse_shallow, run before ensure_canonical.
  • tests/run.sh: a shallow clone is refused and a complete one proceeds. The shallow check failed before the change.
  • monorepo.md: one sentence, offset by cuts; word budget 40487 of 40489.

Closes #65 (closed)

Merge request reports

Loading
Loading