claude-code - 💡(How to fix) Fix Web sessions don't pull submodules even when both repos are granted access

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When deploying a task to a Claude Code web session on a repo that contains a git submodule, the session fails to fetch the submodule — even though I've explicitly granted the Claude Code GitHub app access to both the parent repo and the submodule repo.

Root Cause

Actual

Submodule path is empty / unfetched. Any task that touches code inside the submodule fails because the files aren't there.

RAW_BUFFERClick to expand / collapse

Description

When deploying a task to a Claude Code web session on a repo that contains a git submodule, the session fails to fetch the submodule — even though I've explicitly granted the Claude Code GitHub app access to both the parent repo and the submodule repo.

Repro

  1. Parent repo contains a git submodule pointing at another repo
  2. Grant the Claude Code GitHub app access to both the parent and the submodule repo
  3. Deploy a task on the parent repo via Claude Code web
  4. Session starts on the parent repo but the submodule path is empty

Expected

Submodule is checked out at the pinned commit, equivalent to git clone --recurse-submodules or git submodule update --init --recursive after clone.

Actual

Submodule path is empty / unfetched. Any task that touches code inside the submodule fails because the files aren't there.

Notes

  • Both repos are private, both granted access via the GitHub app integration
  • Works fine locally with the same credentials

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Web sessions don't pull submodules even when both repos are granted access