Skip to content

Commit 778fdbe

Browse files
authored
checkout PR number (ezyang#264)
1 parent e4d7ddd commit 778fdbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ghstack/checkout.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ def main(
1515
remote_name: str,
1616
) -> None:
1717

18-
params = ghstack.github_utils.parse_pull_request(pull_request)
18+
params = ghstack.github_utils.parse_pull_request(
19+
pull_request, sh=sh, remote_name=remote_name
20+
)
1921
head_ref = github.get_head_ref(**params)
2022
orig_ref = re.sub(r"/head$", "/orig", head_ref)
2123
if orig_ref == head_ref:

0 commit comments

Comments
 (0)