Skip to content

fix: use shallow clones for preview generation - #123

Merged
reobin merged 1 commit into
mainfrom
fix/shallow-clones
Nov 13, 2026
Merged

reobin merged 1 commit into
mainfrom
fix/shallow-clones

Conversation

@reobin

@reobin reobin commented Nov 13, 2026

Copy link
Copy Markdown
Member

preview generation clones only the latest commit because it needs files without git history. this reduces clone time for large repositories and keeps the existing 30-second timeout and error handling.

@reobin reobin self-assigned this Nov 13, 2026
Copilot AI balanced review requested due to automatic review settings November 13, 2026 17:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified with the shallow-clone change for preview plugin installation.

No open issues 🎉

What changed in this PR

Preview generation now uses shallow Git clones to reduce clone time for large repositories where only the latest files are needed.

Changes:

  • Adds --depth=1 to the clone command.
  • Preserves the existing 30-second timeout and error handling.
File Description
cli/​generate.go Uses shallow clones when installing plugins for preview generation.

Review effort: Balanced

@reobin
reobin merged commit 8a2668c into main Nov 13, 2026
4 checks passed
@reobin
reobin deleted the fix/shallow-clones branch November 13, 2026 17:20
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