Skip to content

Commit

Permalink
Fix wrong variable names from review
Browse files Browse the repository at this point in the history
  • Loading branch information
bwarden committed Apr 18, 2019
1 parent 75d3d90 commit e4719d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autospec/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion autospec/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4719d0

Please sign in to comment.