# fix\(server\): recheck Git integration before cleanup removes a worktree · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/f0bfb38a27052c0b85a4eb605ea88018647e8e78)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: f0bfb38a27052c0b85a4eb605ea88018647e8e78

Requested commit: f0bfb38a27052c0b85a4eb605ea88018647e8e78

Commit: f0bfb38a27052c0b85a4eb605ea88018647e8e78

Tree: 4a1232ed95a0263358b62643a10baf085d62f0a7

Author: Wills Manley

Committer: Wills Manley

## Message

```
fix(server): recheck Git integration before cleanup removes a worktree

Cleanup checked the setting once at the start of a sweep. Turning Git
integration off while a sweep was measuring a worktree did not stop it, and
the worktree was still removed. The checks that run again before removal now
include the setting, so the sweep keeps the worktree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [141ad94353e4d01e7f9ede2da69c54e39793ba9a](https://git.cafe/pingdotgg/t3code/commit/141ad94353e4d01e7f9ede2da69c54e39793ba9a?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/f0bfb38a27052c0b85a4eb605ea88018647e8e78?format=markdown)
