Skip to content

fix(authors): avoid fetching blobs for shallow history#77

Merged
njzjz merged 1 commit into
deepmodeling:masterfrom
njzjz-bot:improve-shallow-author-fetch
May 30, 2026
Merged

fix(authors): avoid fetching blobs for shallow history#77
njzjz merged 1 commit into
deepmodeling:masterfrom
njzjz-bot:improve-shallow-author-fetch

Conversation

@njzjz-bot
Copy link
Copy Markdown
Contributor

Problem

  • The authors directive fetches full history in shallow Read the Docs checkouts.
  • A plain git fetch --unshallow can download repository blob contents even though git shortlog only needs commit metadata.

Change

  • Split shallow-repository detection and history fetching into helper functions.
  • Fetch unshallowed history with --filter=blob:none so partial-clone-capable servers can avoid downloading blobs.
  • Warn instead of failing hard if the filtered fetch is unavailable.

Verification

  • python3 -m py_compile deepmodeling_sphinx/authors.py
  • git diff --check
  • Manual shallow clone smoke test invoking get_authors() with READTHEDOCS=True

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)

Fetch complete commit history with blob filtering on Read the Docs so git shortlog can produce a full author list without downloading repository contents when the server supports partial clone.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
Copy link
Copy Markdown
Member

@njzjz njzjz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@njzjz njzjz merged commit 8ea1df3 into deepmodeling:master May 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants