From 02d461038e72187acd75d5c46ab0706ffeb43cda Mon Sep 17 00:00:00 2001 From: reynoldsnlp Date: Mon, 20 Nov 2023 10:20:21 -0700 Subject: [PATCH] trivial change to post-commit --- scripts/post-commit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/post-commit b/scripts/post-commit index 0262f99..d282366 100755 --- a/scripts/post-commit +++ b/scripts/post-commit @@ -29,8 +29,7 @@ log = subprocess.run(['git', 'log', '-1', '-p'], stdout=subprocess.PIPE, universal_newlines=True).stdout -diff = '\ndiff --git a/VERSION ' in log -if diff: +if '\ndiff --git a/VERSION ' in log: version_diff = re.search(r'^(diff --git a/VERSION .*?)(?:\Z|^diff --git a/)', log, re.S | re.M).group(1) log_version = re.search(r'^\+\s*([0-9.b]+)\s*$',