# Fix git features not working when a Windows host collaborates with a unix guest \(\#43515\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/757c043171b95013fa5ffa5c29b2a9fae0b7fb90)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 757c043171b95013fa5ffa5c29b2a9fae0b7fb90

Requested commit: 757c043171b95013fa5ffa5c29b2a9fae0b7fb90

Commit: 757c043171b95013fa5ffa5c29b2a9fae0b7fb90

Tree: 4b3f2ed78b5ea650a644687f136c949dbeaccea1

Author: Cole Miller

Committer: GitHub

## Message

```
Fix git features not working when a Windows host collaborates with a unix guest (#43515)

We were using `std::path::Path::strip_prefix` to determine which
repository an absolute path belongs to, which doesn't work when the
paths are Windows-style but the code is running on unix. Replace it with
a platform-agnostic implementation of `strip_prefix`.

Release Notes:

- Fixed git features not working when a Windows host collaborates with a
unix guest
```

## Parents

- [57e1bb810632c0858ea2e8fd6833c6ac261bdde1](https://git.cafe/gitcafe/zed/commit/57e1bb810632c0858ea2e8fd6833c6ac261bdde1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/757c043171b95013fa5ffa5c29b2a9fae0b7fb90?format=markdown)
