Commit 9f77cb66 authored by Tristan Maat's avatar Tristan Maat Committed by Tristan Van Berkom

Handle missing tags in git repositories correctly

Fixes issue #380
parent ea775fa3
Pipeline #23657379 passed with stages
in 29 minutes and 58 seconds
......@@ -472,6 +472,10 @@ def get_bst_version():
from . import __version__
versions = __version__.split('.')[:2]
if versions[0] == '0+untagged':
raise UtilError("Your git repository has no tags - BuildStream can't "
"determine its version. Please run `git fetch --tags`.")
return (int(versions[0]), int(versions[1]))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment