# server: keep newline worktree paths registered · lucenx/signaltty

[View on GitCafe](https://git.cafe/lucenx/signaltty/commit/3b74908c6a985c74daeb5b84dbc1c4ca9e28643e)

Repository: [lucenx/signaltty](https://git.cafe/lucenx/signaltty)

Visibility: public

Requested revision: 3b74908c6a985c74daeb5b84dbc1c4ca9e28643e

Requested commit: 3b74908c6a985c74daeb5b84dbc1c4ca9e28643e

Commit: 3b74908c6a985c74daeb5b84dbc1c4ca9e28643e

Tree: ec4f04973027e171ae5f5c8f8ff11632cf469976

Author: Simone

Committer: Lucenx9

## Message

```
server: keep newline worktree paths registered

git worktree list --porcelain splits a path at an embedded newline, so
is_worktree_registered treated a live checkout as unregistered. Task
cleanup could then remove_dir_all that directory after a failed
git worktree remove. NUL-delimited porcelain keeps the path in one field.

```

## Parents

- [4a5a64fc7de170715a6dd78b46e07530b66287c1](https://git.cafe/lucenx/signaltty/commit/4a5a64fc7de170715a6dd78b46e07530b66287c1?format=markdown)

[Source at this commit](https://git.cafe/lucenx/signaltty/tree/3b74908c6a985c74daeb5b84dbc1c4ca9e28643e?format=markdown)
