# build: Don't check parent directories for git tag · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/21620f3c652bc874776acc7251f05b25d2838019)

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

Visibility: public

Requested revision: 21620f3c652bc874776acc7251f05b25d2838019

Requested commit: 21620f3c652bc874776acc7251f05b25d2838019

Commit: 21620f3c652bc874776acc7251f05b25d2838019

Tree: 0bc0e3aed364d4ec749233c80c06b267495ed9c9

Author: LN Liberda

Committer: Linus Groh

## Message

```
build: Don't check parent directories for git tag

Sometimes Zig is built not from a git repository (e.g. from tarball), but inside another git repository (e.g. distro package repository). Make sure that the version check tries to parse a tag of Zig, and not of a parent directory.

```

## Parents

- [3b3c18909d5f745f607ead203f67d42d13f200d5](https://git.cafe/gitcafe/zig/commit/3b3c18909d5f745f607ead203f67d42d13f200d5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/21620f3c652bc874776acc7251f05b25d2838019?format=markdown)
