Error codes · Git

PULSE-GIT-014 Setting core.worktree takes git to another folder

What does this mean

In the git repository configuration, there is a working folder setting - it tells git to work not with the files of the repository folder, but with another folder (the name of the setting is below, in the section “Why does this happen”). The Pulse window with this setting does not execute git, so the action fails. Your files and commits are intact.

Why does this happen

The setting is called core.worktree. If git Pulse listened to it, the agent could enter its own folder into the config - for example, home - and “Add all” or task acceptance would collect other people’s files with keys and tokens into the copy history, from where the agent would read them. Therefore Pulse allows core.worktree only when it points to the repository folder itself (this is how git configures submodules itself).

What to do

  1. Look in the card to see which file the setting is in: .git/config repository, .git/config.worktree copies or global ~/.gitconfig.
  2. If you didn't install it, remove it: git config --unset core.worktree in the repository folder (this command only edits the config and does not run anything) - and repeat the action in Pulse.
  3. If the configuration is needed (a repository with a working tree in a different folder), perform actions with it in the terminal.

When to write to support

Write to us if git config --show-origin --get core.worktree in the repository folder does not display anything, and Pulse still fails. Click “Send report” in the error card - the code and details will already be entered, the secrets are hidden in them.