There was an error while loading. Please reload this page.
1 parent 90d5bf7 commit 520936cCopy full SHA for 520936c
1 file changed
scripts/stubsabot.py
@@ -773,6 +773,7 @@ async def update_pull_request_label(*, pr_number: int, session: aiohttp.ClientSe
773
774
775
def remote_branch_exists(branch: str) -> bool:
776
+ subprocess.run(["git", "show-ref"], check=False)
777
return (
778
subprocess.run(["git", "show-ref", "--verify", "--quiet", f"refs/remotes/origin/{branch}"], check=False).returncode == 0
779
)
0 commit comments