# build: pass \-\-abbrev to git rather than relying on global config · gitcafe/zig

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

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

Visibility: public

Requested revision: f545fc28b35b454b2b0167ede45aeacc0cd93387

Requested commit: f545fc28b35b454b2b0167ede45aeacc0cd93387

Commit: f545fc28b35b454b2b0167ede45aeacc0cd93387

Tree: 4c71ae6e0cc5ffa16c2eb14a9f8c166524c2bf06

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
build: pass --abbrev to git rather than relying on global config

For computing the zig version number, pass --abbrev=9 rather than
requiring the user to set their git configuration in order to make zig
versions match the standard.

```

## Parents

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

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