HomeFreeBSD

newvers.sh: Avoid spurious -dirty in git revision

Description

newvers.sh: Avoid spurious -dirty in git revision

If git is installed and .git exists but git rev-parse failed to report a
hash we previously produced just "-dirty" as the git revision. Gate the
git commit count and -dirty check on the rev-parse passing.

Reviewed by: jlduran
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57995

(cherry picked from commit 465a3b7adc008c068741594f6c922ede98924f39)

Details

Provenance
emasteAuthored on Jul 1 2026, 2:35 PM
Reviewer
jlduran
Differential Revision
D57995: newvers.sh: Avoid spurious -dirty in git revision
Parents
rGff22dcccc089: libsysdecode: Teach mktables to handle enums
Branches
Unknown
Tags
Unknown