mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
release: sync 'git count' logic with newvers.sh
Sync determining the git count with newvers.sh by adding the --first-parent argument. This ensures uname(1) reflects the file name for snapshots. Reported by: Mark Millard MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
4fbbe52365
commit
e5c6913a8d
|
@ -22,7 +22,7 @@ GITREV!= ${GIT_CMD} -C ${.CURDIR} rev-parse --verify --short HEAD 2>/dev/null ||
|
|||
. export GITREV
|
||||
. endif
|
||||
. if !defined(GITCOUNT) || empty(GITCOUNT)
|
||||
GITCOUNT!= ${GIT_CMD} -C ${.CURDIR} rev-list --count HEAD 2>/dev/null || true
|
||||
GITCOUNT!= ${GIT_CMD} -C ${.CURDIR} rev-list --first-parent --count HEAD 2>/dev/null || true
|
||||
. export GITCOUNT
|
||||
. endif
|
||||
.else
|
||||
|
|
Loading…
Reference in a new issue