Skip to main content
← Back to list
01Issue
FeatureShippedSwamp Club
Assigneesstack72

Relationships

#1292 Docs: document repo root resolution from subdirectories

Opened by stack72 · 7/20/2026· Shipped 7/20/2026

What changed

PR #1909 added git-like parent directory traversal to repo resolution. When no --repo-dir flag or SWAMP_REPO_DIR env var is set, swamp now walks up the directory tree from cwd looking for .swamp.yaml, bounded by:

  • The git repository root (when inside a git repo)
  • A 10-level depth cap (when not in a git repo)

This means swamp commands now work from any subdirectory of a swamp repo without needing --repo-dir.

What needs updating

The Repository Configuration reference page in swamp-club/swamp-club (content/manual/reference/repository-configuration.md) should document:

  1. The full resolution priority chain: --repo-dir flag > SWAMP_REPO_DIR env var > cwd with ancestor traversal
  2. The traversal boundary (git root or 10-level cap)
  3. That swamp repo init is unaffected — it always inits at the specified path or cwd, not at a parent repo

The page currently mentions --repo-dir and SWAMP_REPO_DIR but doesn't mention the subdirectory traversal behavior.


Automoved by swampadmin from https://github.com/swamp-club/swamp/issues/1912

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 4 MOREREVIEW+ 4 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

7/20/2026, 10:02:34 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/20/2026, 9:36:31 PM

Sign in to post a ripple.