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.
f545fc28b3Andrew Kelley committed on 12/19/2023, 8:54:48 AMparent90a19f7