Skip to content

Commit 5dc8a18

Browse files
authored
Merge pull request #63 from runcycles/chore/hygiene-bundle-round2
chore: gate multi-repo remote rewrite on $http_proxy (#63 round 2)
2 parents b5c925b + 8c98c52 commit 5dc8a18

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.claude/session-start-global-deny.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ fi
6262

6363
# --- Part 2: Fix git remote URLs to use local proxy ---
6464
# NOTE: This block intentionally rewrites the `origin` remote on EVERY sibling
65-
# repo under /home/user/* with a github.com remote, not just this one. Claude
66-
# Code remote sessions clone multiple repos and all need the local git proxy.
67-
# To opt out (e.g., when running outside that environment, or when you want
68-
# unrelated checkouts left alone), set CYCLES_CLAUDE_SKIP_REMOTE_REWRITE=1.
69-
# Tracked org-wide at runcycles/.github#63.
70-
if [ -n "$CYCLES_CLAUDE_SKIP_REMOTE_REWRITE" ]; then
65+
# repo under /home/user/* with a github.com remote. That multi-repo scope is
66+
# only meaningful inside Claude Code's remote sessions (which clone many repos
67+
# and need them all on the local git proxy). To keep the default safe on
68+
# vanilla developer machines, we gate on $http_proxy being set — the Claude
69+
# Code remote env sets that, a vanilla dev machine does not.
70+
# Explicit override: set CYCLES_CLAUDE_SKIP_REMOTE_REWRITE=1 to skip even when
71+
# $http_proxy is set. Tracked org-wide at runcycles/.github#63.
72+
if [ -z "$http_proxy" ] || [ -n "$CYCLES_CLAUDE_SKIP_REMOTE_REWRITE" ]; then
7173
exit 0
7274
fi
7375

0 commit comments

Comments
 (0)