diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-05-10 19:35:28 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-05-10 19:35:28 +0200 |
commit | 00d316c0112e80a0ff2873269ed92ad45a42d16e (patch) | |
tree | 49ffa5437b216d683ba3da4dd24b30c73a2cc294 /scripts/dev/build_release.py | |
parent | 3679d3a05b273cbac206c52632ae0c369e7cccf2 (diff) | |
download | qutebrowser-00d316c0112e80a0ff2873269ed92ad45a42d16e.tar.gz qutebrowser-00d316c0112e80a0ff2873269ed92ad45a42d16e.zip |
Check git tree before doing a release
See #5426
Diffstat (limited to 'scripts/dev/build_release.py')
-rwxr-xr-x | scripts/dev/build_release.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index b6f49a5a6..2f037ac68 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -44,7 +44,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, import qutebrowser from scripts import utils -from scripts.dev import update_3rdparty +from scripts.dev import update_3rdparty, misc_checks def call_script(name, *args, python=sys.executable): @@ -473,6 +473,10 @@ def main(): import github3 # pylint: disable=unused-import read_github_token() + if not misc_checks.check_git(): + utils.print_error("Refusing to do a release with a dirty git tree") + sys.exit(1) + if args.no_asciidoc: os.makedirs(os.path.join('qutebrowser', 'html', 'doc'), exist_ok=True) else: |