Skip to content

fix(git): force cached repo fetches#89

Merged
gricha merged 1 commit intomainfrom
gricha/fix/force-git-cache-fetch
Apr 20, 2026
Merged

fix(git): force cached repo fetches#89
gricha merged 1 commit intomainfrom
gricha/fix/force-git-cache-fetch

Conversation

@gricha
Copy link
Copy Markdown
Member

@gricha gricha commented Apr 20, 2026

Force cached git fetches when refreshing skill repositories.

Dotagents reuses cached clones under ~/.local/dotagents, and a plain git fetch can fail when an upstream named ref like v0 has been retagged since the cache was created. In that case install fails with would clobber existing tag even though the cache should just track the current remote state.

This updates the cache refresh paths to use git fetch --force for default branch refreshes, ref fetches, and the age-gate unshallow path. That keeps the cache aligned with the remote for mutable refs while leaving SHA-pinned installs unchanged.

The tests now assert the forced fetch arguments so this behavior stays covered.

pnpm check passes locally. warden could not run in this environment because the configured command points at a missing local build: /Users/greg/code/warden/dist/cli/index.js.

Force git fetches when refreshing cached skill repositories so\nretagged refs do not fail with would clobber existing tag errors.\nThis keeps dotagents aligned with the remote state for mutable refs\nlike major version tags while leaving SHA-pinned installs unchanged.\n\nAdd regression coverage for the fetch commands and the age-gate\nunshallow path so the cache update behavior stays explicit.\n\nCo-Authored-By: OpenAI Codex <noreply@openai.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dotagents Ready Ready Preview, Comment Apr 20, 2026 11:00pm

Request Review

@gricha gricha marked this pull request as ready for review April 20, 2026 23:02
@gricha gricha merged commit 31224e2 into main Apr 20, 2026
18 checks passed
@gricha gricha deleted the gricha/fix/force-git-cache-fetch branch April 20, 2026 23:05
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.

1 participant