# Do not redownload same Nightly updates over and over \(\#59994\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1a99eba1926a2776cfb39be3dca922cf08483af7

Requested commit: 1a99eba1926a2776cfb39be3dca922cf08483af7

Commit: 1a99eba1926a2776cfb39be3dca922cf08483af7

Tree: d4ea0419d795e20a9207331ced38cc365903338e

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Do not redownload same Nightly updates over and over (#59994)

If one gets a Nightly update but does not restart and rather dismisses
the notification, the next update check will do the update again.

This is caused by the fact that the version check is done based on
semver, but Nightly has the very same version that differs by the SHA
only.
Adjust the Nightly update check to skip re-downloads if SHA parts of the
version match also.

https://github.com/zed-industries/zed/pull/59852 does more changes, this
PR extracts the part I am sure about.

Release Notes:

- N/A
```

## Parents

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

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