INNER CODE UNIT · Python
content
epigen/MrBiomics · helpers/MrBiomics_context_crawler.py:145
summary, tree, content = ingest(repo.url, **kwargs)
except Exception as exc:
warning = f"GitIngest failed for {repo.url}: {exc}"
print(f"WARNING: {warning}", file=sys.stderr)
return warning
parts = []
for part in (summary, tree, content):
if part:
parts.append(part.strip())
return "\n\n".join(parts).strip()
def fetch_wiki_via_git(repo: RepoSpec, token: Optional[str] = None) -> tuple[str, str, str]:
"""
Clone the wiki git repository, concatenate pages with separators, and return
the digest along with HEAD commit metadata.
"""
clone_url = repo.url