Skip to content

Commit 66cbdbd

Browse files
committed
update debug
1 parent 520936c commit 66cbdbd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/stubsabot.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,6 @@ async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSe
773773

774774

775775
def remote_branch_exists(branch: str) -> bool:
776-
subprocess.run(["git", "show-ref"], check=False)
777776
return (
778777
subprocess.run(["git", "show-ref", "--verify", "--quiet", f"refs/remotes/origin/{branch}"], check=False).returncode == 0
779778
)
@@ -882,6 +881,8 @@ async def suggest_typeshed_update(update: Update, session: aiohttp.ClientSession
882881
meta = update_metadata(update.distribution, version=update.new_version)
883882
body = get_update_pr_body(update, meta)
884883
subprocess.check_call(["git", "commit", "--all", "-m", f"{title}\n\n{body}"])
884+
print("[DEBUG]")
885+
subprocess.run(["git", "show-ref"], check=False)
885886
if action_level <= ActionLevel.local:
886887
return
887888
if not latest_commit_is_different_to_last_commit_on_origin(branch_name):

0 commit comments

Comments
 (0)