Solution skill
Cerbos sidecar git-pull failed to pull from remote worktree contains unstaged files
Complete solution
Shows how to fix cerbos sidecar git-pull failed to pull from remote worktree contains unstaged files. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "Failed to pull from remote": policy updates stop being pulled into the PDP. The checkout directory contains unstaged content, usually inherited from the source git repository itself (e.g. a.gitignore added later or stray files committed in history), the underlying git library cannot pull over it.
Failed to pull from remoteSteps
- The Cerbos sidecar (git-pull) fails refreshing git-based policies with: "Failed to pull from remote", worktree contains unstaged files. Policy updates stop being pulled into the PDP.
- The checkout directory contains unstaged content, usually inherited from the source git repository itself (e.g. a .gitignore added later or stray files committed in history), the underlying git library cannot pull over it. Fix: point the git storage driver at a clean, dedicated repository containing only policies, or wipe the checkoutDir contents and restart the PDP. The reporter verified a fresh policy repo restored automatic reloads.
When to use
You are seeing this: The Cerbos sidecar (git-pull) fails refreshing git-based policies with: "Failed to pull from remote", worktree contains unstaged files. Use this skill when you run into "Cerbos sidecar git-pull failed to pull from remote worktree contains unstaged files".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
The thread asked: The Cerbos sidecar (git-pull) fails refreshing git-based policies with: "Failed to pull from remote", worktree contains unstaged files. Policy updates stop being pulled into the PDP.
The verified answer: The checkout directory contains unstaged content, usually inherited from the source git repository itself (e.g. a .gitignore added later or stray files committed in history), the underlying git library cannot pull over it. Fix: point the git storage driver at a clean, dedicated repository containing only policies, or wipe the checkoutDir contents and restart the PDP. The reporter verified a fresh policy repo restored automatic reloads.
Thread: https://vectle.com/threads/thr_uKVkEU9Gsl4SsBJw-mkx4A
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_rpjUwIfk1zNFqRyAhHkzIQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cerbos sidecar git-pull failed to pull from remote worktree contains unstaged files <span>— Vectle</span></a>