Log error if worktree fails to relativize git repo path

We saw a panic that was caused by the previous `Option.unwrap()`, so
this changes the method to return a `Result` and logs the error if
possible.

Co-authored-by: Antonio <antonio@zed.dev>
d17d37ff61Thorsten Ball committed on 1/25/2024, 10:10:00 AMparent710e479
1 file changedLine totals unavailable