-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issuehelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
Syncing a fork with gh repo sync user/repo seems to no longer work.
$ gh --version
gh version 2.3.0 (2021-12-02)
https://github.com/cli/cli/releases/tag/v2.3.0
Steps to reproduce the behavior
$ gh repo sync dentarg/puma
HTTP 404: Not Found (https://api.github.com/repos/dentarg/puma/git/refs/heads/master)
Expected vs actual behavior
Sync fork without error.
Logs
$ DEBUG=1 gh repo sync dentarg/puma
⣾ * Request at 2021-12-14 23:19:02.767743 +0100 CET m=+0.013774178
* Request to https://api.github.com/graphql
⢿ * Request took 471.483583ms
⣾ * Request at 2021-12-14 23:19:03.239428 +0100 CET m=+0.485460189
* Request to https://api.github.com/graphql
* Request took 242.680455ms
⣾ * Request at 2021-12-14 23:19:03.482478 +0100 CET m=+0.728510719
* Request to https://api.github.com/repos/puma/puma/git/refs/heads/master
⣽ * Request took 177.459393ms
* Request at 2021-12-14 23:19:03.660056 +0100 CET m=+0.906089209
* Request to https://api.github.com/repos/dentarg/puma/git/refs/heads/master
⢿ * Request took 229.991472ms
HTTP 404: Not Found (https://api.github.com/repos/dentarg/puma/git/refs/heads/master)
curl -s -v https://api.github.com/repos/dentarg/puma/git/refs/heads/master returns 200 response
$ curl -s -v https://api.github.com/repos/dentarg/puma/git/refs/heads/master
* Trying 140.82.121.6:443...
* Connected to api.github.com (140.82.121.6) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.github.com
* start date: Mar 25 00:00:00 2021 GMT
* expire date: Mar 30 23:59:59 2022 GMT
* subjectAltName: host "api.github.com" matched cert's "*.github.com"
* issuer: C=US; O=DigiCert, Inc.; CN=DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fe795004a00)
> GET /repos/dentarg/puma/git/refs/heads/master HTTP/2
> Host: api.github.com
> user-agent: curl/7.76.1
> accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/2 200
< server: GitHub.com
< date: Tue, 14 Dec 2021 22:19:23 GMT
< content-type: application/json; charset=utf-8
< cache-control: public, max-age=60, s-maxage=60
< vary: Accept, Accept-Encoding, Accept, X-Requested-With
< etag: W/"f3c2afa80a8c02f3c775783acf72eca88fd4fd84e749319fe2da12ae1dbd0d90"
< last-modified: Mon, 13 Dec 2021 00:05:04 GMT
< x-poll-interval: 300
< x-github-media-type: github.v3; format=json
< access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
< access-control-allow-origin: *
< strict-transport-security: max-age=31536000; includeSubdomains; preload
< x-frame-options: deny
< x-content-type-options: nosniff
< x-xss-protection: 0
< referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
< content-security-policy: default-src 'none'
< x-ratelimit-limit: 60
< x-ratelimit-remaining: 49
< x-ratelimit-reset: 1639523490
< x-ratelimit-resource: core
< x-ratelimit-used: 11
< accept-ranges: bytes
< content-length: 374
< x-github-request-id: EAD2:10CA9:28697AA:2921C9A:61B9186B
<
{
"ref": "refs/heads/master",
"node_id": "MDM6UmVmMjA0MTU0MTA0OnJlZnMvaGVhZHMvbWFzdGVy",
"url": "https://api.github.com/repos/dentarg/puma/git/refs/heads/master",
"object": {
"sha": "fa178f3c829610d82b9c5013db748ff0207e5773",
"type": "commit",
"url": "https://api.github.com/repos/dentarg/puma/git/commits/fa178f3c829610d82b9c5013db748ff0207e5773"
}
}
* Connection #0 to host api.github.com left intact
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issuehelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic