# ep: Fix revision resolution for tilde expressions \(\#46258\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 82826e723eb4d50b6f3330685f557d6a5a418afe

Requested commit: 82826e723eb4d50b6f3330685f557d6a5a418afe

Commit: 82826e723eb4d50b6f3330685f557d6a5a418afe

Tree: af25736b948b16e5d8881a7d1bc09022bd3c55f1

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
ep: Fix revision resolution for tilde expressions (#46258)

When a revision like `abcd~1` wasn't found locally, the function would
fetch and then return `FETCH_HEAD`, which points to the tip of the
fetched branch rather than the requested revision expression.

Now it re-resolves the original revision after fetching, correctly
handling tilde expressions and other git revision syntax.

Release Notes:

- N/A
```

## Parents

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

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