eval: Fix git revision existence check (#28959)

This change fixes a bug in the worktree initialization.

Details: `git ref-parse --verify $HASH` just checks that $HASH is a
well-formed hash and will successfully return even if $HASH doesn't
exist.

Release Notes:

- N/A
6dd622d6c3Oleksiy Syvokon committed on 4/17/2025, 4:57:37 PM· committed by GitHubparente7afbbd
1 file changedLine totals unavailable