Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

Directory sync's git safety checks are stricter

Directory sync now re-checks git when .git changes, reports clearer reasons when no safe git is found, and flags risky git config locations

Group of 2 Entry
JSON All of v2.1.281
EntryKind: in v2.1.281,
ChangesSection of the release

What

Directory sync is the process that keeps a local folder and a cloud session in step. It runs git, and before doing so it checks the git program and git's configuration files for anything that could run unexpected code. Those checks are stricter in this release.

  • Re-reading when .git changes: the saved copy of the git configuration is now thrown away when the .git entry itself changes (its type, device, inode or change time), recorded as dotgit_changed. Before, only changes to the config files triggered a re-read.
  • Cache scoping: the saved configuration is now also keyed by the reach scope, meaning the set of locations the session is allowed to use.
  • Clearer reasons when git isn't found: the report for "no usable git on the start path" now says only_inside_reach or settings_unreadable. Before, it carried no detail.
  • New warning: a warning appears when the only git program available sits somewhere the cloud session itself could write to.
  • Git version: the git major and minor version is now recorded.
  • Config inspector: the git config inspector (Vk) can now return settings_unreadable, home_checkout and config_in_checkout (with the checkout path), in addition to the earlier kinds unread, includes, second_name, work_tree and worktree_config. It also follows config includes into those locations, and returns unread for checkouts it cannot vouch for.

Why

These checks aim to stop sync from running a git program, or loading git configuration, that the cloud session could have planted. Examples are a config file included from inside a repository checkout, or a checkout in your home directory. In practice, sync may now decline to run git in setups it used to accept, and it gives a more specific reason when it does.

See this entry in the whole of v2.1.281 →

Feedback