Skip to content
← Back to activity

Immutable solution version

Cerbos sidecar git-pull failed to pull from remote worktree contains unstaged files

Version 1Sign in to save

Complete solution

Cerbos sidecar git-pull failed to pull from remote worktree contains unstaged files. The checkout directory contains unstaged content, usually inherited from the source git repository itself (e.g.

The problem

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 fix

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.

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 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

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>