Skip to content

gh repo sync not working #7574

@Alizter

Description

@Alizter

Describe the bug

$ gh repo sync alizter/dune
HTTP 404: Not Found (https://api.github.com/repos/alizter/dune/git/refs/heads/main)

when the repo doesn't need syncing, the command succeeds. Clicking this URL also correctly fetches the json.

NixOS

gh version 2.29.0 (1980-01-01)
https://github.com/cli/cli/releases/tag/v2.29.0

Steps to reproduce the behavior

  1. Have a repo that needs syncing.
  2. Do gh repo sync user/repo
  3. Should 404

Expected vs actual behavior

It used to work and sync the repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcoreThis issue is not accepting PRs from outside contributorsneeds-user-inputplatformProblems with the GitHub platform rather than the CLI client

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions