From ea6ada07286dcc8a0e7dff04495632235297aa06 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 6 Apr 2020 11:52:21 +0100 Subject: [PATCH] Fix update deps script bugs --- bin/make_dependency_update_pr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/make_dependency_update_pr.py b/bin/make_dependency_update_pr.py index d24295a5..adfb21e0 100755 --- a/bin/make_dependency_update_pr.py +++ b/bin/make_dependency_update_pr.py @@ -20,11 +20,11 @@ def git_repo_has_changes(): @click.command() -def main(force): +def main(): project_root = Path(__file__).parent / '..' os.chdir(project_root) - if git_repo_has_changes() and not force: + if git_repo_has_changes(): print('Your git repo has uncommitted changes. Commit or stash before continuing.') exit(1) @@ -41,7 +41,7 @@ def main(force): shell(f'git checkout -b {branch_name} origin/master', check=True) try: - shell('bin/update_constraints.py', check=True) + shell('bin/update_dependencies.py', check=True) if not git_repo_has_changes(): print('Done: no constraint updates required.')