File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 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- self .latest_upstream_tag = self .check_tag ( self . run ("git describe --tags --abbrev=0 --match='*-*'" , stderr = stderr ) )
284- self .commits_since_upstream = self ._commits_since (self .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