git: 17eba5e32a2c - newvers.sh: fix sense of git dirty check
Ed Maste
emaste at FreeBSD.org
Wed Dec 23 04:32:19 UTC 2020
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=17eba5e32a2cf7a217bb9f1e5dcca351f2b71cfc
commit 17eba5e32a2cf7a217bb9f1e5dcca351f2b71cfc
Author: Ed Maste <emaste at FreeBSD.org>
AuthorDate: 2020-12-23 04:31:15 +0000
Commit: Ed Maste <emaste at FreeBSD.org>
CommitDate: 2020-12-23 04:31:15 +0000
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 f5e34b4946a5..5ce93567e3af 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
More information about the dev-commits-src-main
mailing list