Skip to content

Commit

Permalink
vcs: warn about ambiguity of having both branch and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Apr 11, 2023
1 parent ed3cf53 commit d5e2137
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xbstrap/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,12 @@ def __init__(self, cfg, induced_name, yml):
else:
self._name = induced_name

if "git" in self._this_yml:
if "branch" in self._this_yml and "tag" in self._this_yml:
_util.log_err(
f"source '{self._name}' has both a tag and a branch; this is ambiguous"
)

if "regenerate" in self._this_yml:
for step_yml in self._this_yml["regenerate"]:
self._regenerate_steps.append(ScriptStep(step_yml))
Expand Down

0 comments on commit d5e2137

Please sign in to comment.