# linux: Fix crash when switching repository via git panel \(\#31556\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6545c5ebe0caf88bdc27562e429a4a4ccbf738e1

Requested commit: 6545c5ebe0caf88bdc27562e429a4a4ccbf738e1

Commit: 6545c5ebe0caf88bdc27562e429a4a4ccbf738e1

Tree: 9fe65a7ed270ed57a5058647e6ecaa626f42d274

Author: Smit Barmase

Committer: GitHub

## Message

```
linux: Fix crash when switching repository via git panel (#31556)

Closes #30409

Handles edge case where `f32` turns into `Nan` and causes panic down the
code.

Release Notes:

- Fixed issue where Zed crashes on switching repository via git panel on
Linux.
```

## Parents

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

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