Skip to content

Commit

Permalink
checkout PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 22, 2024
1 parent 197ac2d commit f7494f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ghstack/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def main(
remote_name: str,
) -> None:

params = ghstack.github_utils.parse_pull_request(pull_request)
params = ghstack.github_utils.parse_pull_request(
pull_request, sh=sh, remote_name=remote_name
)
head_ref = github.get_head_ref(**params)
orig_ref = re.sub(r"/head$", "/orig", head_ref)
if orig_ref == head_ref:
Expand Down

0 comments on commit f7494f5

Please sign in to comment.