From 1fafceab2b41ad6276b707c9a1552af83b259c4f Mon Sep 17 00:00:00 2001 From: "Brett T. Warden" Date: Tue, 2 Apr 2019 14:31:39 -0700 Subject: [PATCH] Fix wrong variable names from review --- autospec/config.py | 2 +- autospec/git.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autospec/config.py b/autospec/config.py index 4da5b0b7..348c798d 100644 --- a/autospec/config.py +++ b/autospec/config.py @@ -613,7 +613,7 @@ def parse_config_files(path, bump, filemanager, version): # Read values from options.conf (and deprecated files) and rewrite as necessary read_config_opts(path) - if not git_pull_uri: + if not git_push_uri: print("Warning: Set [autospec][git] upstream template for remote git URI configuration") if not license_fetch: print("Warning: Set [autospec][license_fetch] uri for license fetch support") diff --git a/autospec/git.py b/autospec/git.py index 6d6154c6..c5bda336 100644 --- a/autospec/git.py +++ b/autospec/git.py @@ -42,7 +42,7 @@ def commit_to_git(path): call("git remote add origin %s" % upstream_uri, cwd=path) push_uri = config.git_push_uri % {'NAME': tarball.name} if push_uri != upstream_uri: - call("git remote set-url origin --push %s" % upstream_uri, cwd=path) + call("git remote set-url origin --push %s" % push_uri, cwd=path) for config_file in config.config_files: call("git add %s" % config_file, cwd=path, check=False)