Skip to content

Commit

Permalink
Fixes in pr.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Nov 15, 2023
1 parent 51c8cc6 commit f046ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def run_cmd(cmd, input=None, env=None, retry_fn=None):
output = proc.stdout.decode()
print(output, end='')
except subprocess.CalledProcessError as e:
if retry_fn is not None and retry_fn(output):
if retry_fn is not None and retry_fn(e.output):
time.sleep(0.5)
continue
error('command failed')
Expand Down Expand Up @@ -510,7 +510,7 @@ def rebase_pr(org, repo, pr_number):
])

run_cmd([
'git', 'rebase', base_sha,
'git', 'rebase', '--onto', base_sha, pr_info['target_sha'],
])

def squash_pr(org, repo, pr_number, no_issue):
Expand Down

0 comments on commit f046ee4

Please sign in to comment.