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
@@ -1117,8 +1119,12 @@ def main() -> int:
11171119 git_ref = git_runner .run (f"{ GIT_PREFIX } rev-parse HEAD" )
11181120
11191121 # let's get CH version
1120- version = get_version_from_repo (git = Git (True )).string
1121- print (f"Got CH version for this commit: [{ version } ]" )
1122+ git = Git (True )
1123+ version = get_version_from_repo (git = git ).string
1124+ print (f"""Got CH version for this commit: [{ version } ]
1125+ latest tag: { git .latest_tag } ({ git .commits_since_latest } commits back),
1126+ latest upstream tag: { git .latest_upstream_tag } ({ git .commits_since_upstream } commits back)
1127+ """ )
11221128
11231129 docker_data = (
11241130 _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