Skip to content

Commit

Permalink
trivial change to post-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsnlp committed Nov 20, 2023
1 parent 1e69784 commit 02d4610
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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*$',
Expand Down

0 comments on commit 02d4610

Please sign in to comment.