Skip to content

Could not checkout PR with gh-cli 1.10.0 #3661

@STRRL

Description

@STRRL

Describe the bug

A clear and concise description of what the bug is. Include version by typing gh --version.

$ gh --version
gh version 1.10.0 (2021-05-18)
https://github.com/cli/cli/releases/tag/v1.10.0

Hi, I just upgrade my gh-cli from 1.9.2 to 1.10.0, and it could not checkout any pr of any repo.

Currently, I have a downgrade for using 1.9.2.

Steps to reproduce the behavior

Expected vs actual behavior

A clear and concise description of what you expected to happen and what actually happened.

Expected:
gh could checkout the branch with tracking the correct upstream.

Actual:
gh exit with exitcode 128, and log: fatal: couldn't find remote ref refs/heads/podiochaosthroughreconciler

Logs

Paste the activity from your command line. Redact if needed.

# strrl @ giu in ~/temp [16:37:22] 
$ git clone https://github.com/chaos-mesh/chaos-mesh 
Cloning into 'chaos-mesh'...
remote: Enumerating objects: 15207, done.
remote: Counting objects: 100% (1889/1889), done.
remote: Compressing objects: 100% (1024/1024), done.
remote: Total 15207 (delta 992), reused 1395 (delta 730), pack-reused 13318
Receiving objects: 100% (15207/15207), 49.67 MiB | 18.34 MiB/s, done.
Resolving deltas: 100% (9236/9236), done.

# strrl @ giu in ~/temp [16:37:28] 
$ cd chaos-mesh 

# strrl @ giu in ~/temp/chaos-mesh on git:master o [16:37:30] 
$ gh pr checkout 1836
fatal: couldn't find remote ref refs/heads/podiochaosthroughreconciler
exit status 128

# strrl @ giu in ~/temp/chaos-mesh on git:master o [16:37:38] C:1
$ gh --version
gh version 1.10.0 (2021-05-18)
https://github.com/cli/cli/releases/tag/v1.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions