Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git clone --mirror fails #66168

Closed
xiota opened this issue May 26, 2023 · 3 comments
Closed

git clone --mirror fails #66168

xiota opened this issue May 26, 2023 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@xiota
Copy link

xiota commented May 26, 2023

Description

I am unable to clone this repository with git clone --mirror. Upon running the command, I see the following output:

Cloning into bare repository 'swift.git'...

Followed by no output or network activity for a long time. Then the following error:

error: RPC failed; HTTP 408 curl 18 HTTP/2 stream 7 was reset
fatal: expected 'packfile'

git clone and git clone --bare appear to work as expected.

git works as expected on a fork of the repository with the "Copy the main branch only" option unchecked. (Potential solution, replace repository with a fresh fork.)

Steps to reproduce

Run: git clone --mirror https://github.com/apple/swift.git

Expected behavior

git should clone the repository.

Note: Same issue with different repository: apple/llvm-project#6919

@xiota xiota added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels May 26, 2023
@finagolfin
Copy link
Contributor

I recently saw a similar issue with pushing a large branch to my Swift fork on github, which was fixed for me by enlarging git's http.postBuffer, maybe that will work for you too.

@tbkka
Copy link
Contributor

tbkka commented May 26, 2023

This is an issue with git and/or Github servers and/or your network connection, not with the swift project per se.

@tbkka tbkka closed this as completed May 26, 2023
@xiota
Copy link
Author

xiota commented May 26, 2023

Of numerous GitHub repositories, many owned by Apple, I encountered this issue with only these two repositories, both owned by Apple, when using the --mirror flag. This has been reproduced on my personal machine and two build servers outside my control, on three separate networks. This makes git configuration and network connection issues unlikely.

Some GitHub server or configuration issue related to these specific repositories is likely. However, since the repositories are owned by Apple, I would expect Apple developers or representatives would be interested in fixing the problem, contacting GitHub, if necessary, to resolve the issue. Do you really prefer to have an outsider contact GitHub directly about issues with your repositories, potentially disrupting your company's activities in the process?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

3 participants