From 17eba5e32a2cf7a217bb9f1e5dcca351f2b71cfc Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 22 Dec 2020 23:31:15 -0500 Subject: [PATCH] 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 --- sys/conf/newvers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index f5e34b4946a..5ce93567e3a 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -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