newvers.sh: fix sense of git dirty check

Previously we reported -dirty for an unmodified tree, and no -dirty if
there were changes.

PR:		252028
Reported by:	John Kennedy
This commit is contained in:
Ed Maste 2020-12-22 23:31:15 -05:00
parent 5ef5f51d2b
commit 17eba5e32a

View File

@ -162,7 +162,7 @@ findvcs()
git_tree_modified()
{
$git_cmd "--work-tree=${VCSTOP}" -c core.checkStat=minimal -c core.fileMode=off diff --quiet
! $git_cmd "--work-tree=${VCSTOP}" -c core.checkStat=minimal -c core.fileMode=off diff --quiet
}
LC_ALL=C; export LC_ALL