vcspull trust

A .vcspull.yaml inside a repository you cloned is code somebody else wrote, and it names paths on your disk. vcspull loads such a file silently as long as every repository it declares lands inside that file’s own directory. When one does not, vcspull asks — and vcspull trust is how you answer ahead of time, or take the answer back.

Most people never run this command. See Configuration scopes for when the question comes up at all.

Command

Trust a project directory’s configuration.

A project config that would check a repository out beyond its own directory needs your consent before vcspull will act on it. Trust is recorded per directory, so a second config in the same project does not re-ask.

Usage

usage: vcspull trust [-h] [--untrust | --show] [DIR]

Examples

$ vcspull trust
$ vcspull trust ~/work/api
$ vcspull trust --untrust ~/work/api
$ vcspull trust --show

Positional Arguments

directory DIR

project directory to trust (default: current directory)

Default
None

Options

--untrust

remove the directory from the trusted set

Default
False
--show

print the trusted project directories and exit

Default
False

Allowing a project

Trust the current directory when no path is given, or name an explicit project directory:

$ vcspull trust
trusted ~/work/api
$ vcspull trust ~/work/api
trusted ~/work/api

Trust is recorded per directory, not per file, so a second config in the same project does not ask again. The trade-off is real: a configuration committed to that directory can now direct your checkouts anywhere on disk, including after somebody else edits it.

Reviewing and revoking

$ vcspull trust --show
~/work/api
$ vcspull trust --untrust ~/work/api
untrusted ~/work/api

The record lives in $XDG_STATE_HOME/vcspull/trusted (~/.local/state/vcspull/trusted when XDG_STATE_HOME is unset), one directory per line.

In automation

There is no prompt without a terminal — a sync in CI fails loudly rather than blocking on a question nobody can see. To accept without asking, pass --trust-project or export VCSPULL_YES=1.