Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/ghstack/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ async def main(
orig_ref = re.sub(r"/head$", "/orig", head_ref)
if orig_ref == head_ref:
logging.warning(
"The ref {} doesn't look like a ghstack reference".format(head_ref)
"The ref {} doesn't look like a ghstack reference; "
"delegating to gh pr checkout".format(head_ref)
)
await sh.ash("gh", "pr", "checkout", pull_request.lstrip("#"))
return

# TODO: Handle remotes correctly too (so this subsumes hub)

Expand Down
Loading