File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+
13import argparse
24import concurrent .futures
35import json
@@ -1030,8 +1032,12 @@ def main() -> int:
10301032 git_ref = git_runner .run (f"{ GIT_PREFIX } rev-parse HEAD" )
10311033
10321034 # let's get CH version
1033- version = get_version_from_repo (git = Git (True )).string
1034- print (f"Got CH version for this commit: [{ version } ]" )
1035+ git = Git (True )
1036+ version = get_version_from_repo (git = git ).string
1037+ print (f"""Got CH version for this commit: [{ version } ]
1038+ latest tag: { git .latest_tag } ({ git .commits_since_latest } commits back),
1039+ latest upstream tag: { git .latest_upstream_tag } ({ git .commits_since_upstream } commits back)
1040+ """ )
10351041
10361042 docker_data = (
10371043 _configure_docker_jobs (args .docker_digest_or_latest )
Original file line number Diff line number Diff line change @@ -280,8 +280,8 @@ def _update_tags(self, suppress_stderr: bool = False) -> None:
280280 self .latest_tag = self .run ("git describe --tags --abbrev=0" , stderr = stderr )
281281 self .commits_since_latest = self ._commits_since (self .latest_tag )
282282
283- latest_upstream_tag = self .run ("git describe --tags --abbrev=0 --match='*-*'" , stderr = stderr )
284- self .commits_since_upstream = self ._commits_since (latest_upstream_tag )
283+ self . latest_upstream_tag = self .run ("git describe --tags --abbrev=0 --match='*-*'" , stderr = stderr )
284+ self .commits_since_upstream = None if not self .latest_upstream_tag else self . _commits_since (self . latest_upstream_tag )
285285
286286 if self .latest_tag .endswith ("-new" ):
287287 # We won't change the behaviour of the the "latest_tag"
You can’t perform that action at this time.
0 commit comments