Error codes · Git
PULSE-GIT-013 The connection between the working copy of the task and the repository has been changed
What does this mean
Each task has its own working copy - a separate folder associated with the project repository. Communication - file .git at the root of a copy with one line gitdir: <path>: the path leads to the entry of this copy inside the folder .git project. Now file .git copy points to another location: to a folder inside the copy itself, to an entry in an adjacent copy, or outside the project repository, or .git replaced by a link. Pulse git did not run in this copy - neither status, nor diff, nor acceptance. The project repository and its history are intact.
Why does this happen
The task agent writes to its copy, and the file .git lies inside her. By rewriting it to its git settings folder, the agent could force git, which Pulse runs for you outside the agent's sandbox, to execute its program (core.fsmonitor) or collect your home folder files into a copy history (core.worktree), where I would read them from. Therefore Pulse takes the git copy directory only from the project's repository entry and does not run git unless .git copies are pointing in the wrong direction.
Less often, it turns out this way without malicious intent: the copy was copied by hand or transferred in the wrong way.
What to do
- Stop this task's agent and view its latest activity in the task's feed.
- Don't run git in the copy folder from the terminal, until you figure it out: terminal git will read the substituted file
.gitand will do what it says. - Get the link back from the folder project (not copies):
git worktree repair. Git will rewrite the file.giteach copy of the project with the correct line; it does not launch anything from the copy itself. If.gitcopies - link, delete it first (rm <copy>/.git), otherwise git won't rewrite it. The folder that the agent planted (for example,.evil), delete from the copy - after fixing it, git Pulse doesn’t read it, but there’s no need to keep it. - It didn’t help - delete the copy folder: Pulse will pick it up again from the task branch the next time you start the task. Changes saved by a commit will remain in the branch; edits not saved by the commit will be lost.
- If you transferred the copy, return the folder to its original location or specify a new project path in the project menu: “Specify new repository path...”.
When to write to support
Write to us if the file .git copies - one line gitdir: <project>/.git/worktrees/<name> with the path to your project, but Pulse still fails. Click “Send report” in the error card - the code and details will already be entered, the secrets are hidden in them.