Skip to content

Commit

Permalink
BUG: AuthorsChangesSince.py support both single and multiline
Browse files Browse the repository at this point in the history
Versions can be available in the *.remote.cmake files of the form:

  GIT_TAG abc123

and

  GIT_TAG
  abc123)

in the history. Support both.
  • Loading branch information
thewtex authored and dzenanz committed Apr 29, 2024
1 parent 004fd7c commit 487da6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Utilities/Maintenance/AuthorsChangesSince.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,16 @@ def remote_repository(remote_spec):


def remote_tag(remote_spec):
use_next_line = False
for line in remote_spec.split("\n"):
if use_next_line:
return line.split(')')[0].strip()
split = line.split()
try:
tag_index = split.index("GIT_TAG")
if len(split) < 2:
use_next_line = True
continue
return split[tag_index + 1].strip()
except ValueError:
continue
Expand Down

0 comments on commit 487da6d

Please sign in to comment.