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
82826e723eOleksiy Syvokon committed on 1/7/2026, 2:18:54 PM· committed by GitHubparent0136e41
1 file changedLine totals unavailable