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
+
1
3
import argparse
2
4
import concurrent .futures
3
5
import json
@@ -1117,8 +1119,12 @@ def main() -> int:
1117
1119
git_ref = git_runner .run (f"{ GIT_PREFIX } rev-parse HEAD" )
1118
1120
1119
1121
# 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
+ """ )
1122
1128
1123
1129
docker_data = (
1124
1130
_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:
280
280
self .latest_tag = self .run ("git describe --tags --abbrev=0" , stderr = stderr )
281
281
self .commits_since_latest = self ._commits_since (self .latest_tag )
282
282
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 )
285
285
286
286
if self .latest_tag .endswith ("-new" ):
287
287
# We won't change the behaviour of the the "latest_tag"
You can’t perform that action at this time.
0 commit comments