{
  "id": "git/submodule-checkout-failed",
  "signature": "fatal: Failed to recurse into submodule path 'subdir/submodule'",
  "signature_zh": "致命错误：无法递归到子模块路径'subdir/submodule'",
  "regex": "fatal: Failed to recurse into submodule path '[^']+'",
  "domain": "git",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "Git cannot checkout or update a submodule due to issues such as missing submodule URL, network failure, or local changes in the submodule.",
  "root_cause_type": "generic",
  "root_cause_zh": "Git无法检出或更新子模块，原因包括子模块URL缺失、网络故障或子模块中存在本地更改。",
  "versions": [
    {
      "version": "2.39.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "2.40.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "2.41.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Running 'git submodule update --init --recursive' multiple times without checking the submodule URL.",
      "why_fails": "If the submodule URL is wrong or inaccessible, repeating the command won't fix the underlying issue.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Deleting the submodule directory and re-running 'git submodule update'.",
      "why_fails": "This may work if the submodule was corrupted, but it doesn't address URL or network issues.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually editing .gitmodules without understanding the submodule dependency.",
      "why_fails": "Incorrect changes to .gitmodules can break the submodule setup further.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check the submodule URL in .gitmodules and verify network access: 'git config --file .gitmodules submodule.subdir/submodule.url'. Then run 'git submodule sync' and 'git submodule update --init --recursive'.",
      "success_rate": 0.85,
      "how": "Check the submodule URL in .gitmodules and verify network access: 'git config --file .gitmodules submodule.subdir/submodule.url'. Then run 'git submodule sync' and 'git submodule update --init --recursive'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the submodule has local changes, stash or commit them first: 'cd subdir/submodule && git stash && cd ../.. && git submodule update --init --recursive'.",
      "success_rate": 0.9,
      "how": "If the submodule has local changes, stash or commit them first: 'cd subdir/submodule && git stash && cd ../.. && git submodule update --init --recursive'.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "检查.gitmodules中的子模块URL并验证网络访问：'git config --file .gitmodules submodule.subdir/submodule.url'。然后运行'git submodule sync'和'git submodule update --init --recursive'。",
    "如果子模块有本地更改，先暂存或提交：'cd subdir/submodule && git stash && cd ../.. && git submodule update --init --recursive'。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt---recurse-submodules",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2023-11-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}