# eval: Fix git revision existence check \(\#28959\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6dd622d6c329b1a0ff812bed43abcb22fa16f101

Requested commit: 6dd622d6c329b1a0ff812bed43abcb22fa16f101

Commit: 6dd622d6c329b1a0ff812bed43abcb22fa16f101

Tree: 306495ded49128b89d15a56a8b0cb627d9addef4

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
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
```

## Parents

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

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