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

Clean-up the large git history of country-config / core #8247

Open
naftis opened this issue Dec 19, 2024 · 1 comment
Open

Clean-up the large git history of country-config / core #8247

naftis opened this issue Dec 19, 2024 · 1 comment

Comments

@naftis
Copy link
Collaborator

naftis commented Dec 19, 2024

Even with a fast internet connection, cloning the country-config takes a long time. I've experienced this on multiple machines while on-boarding new developers

➜  Projects git clone https://github.com/opencrvs/opencrvs-countryconfig-mosip
Cloning into 'opencrvs-countryconfig-mosip'...
remote: Enumerating objects: 27211, done.
remote: Counting objects: 100% (2644/2644), done.
remote: Compressing objects: 100% (359/359), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 6878 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

I think it's due to some old backups being still in the Git history. Could we look into this and remove them? Is there an alternative way to clone the country-config faster? If there is, can we always suggest doing that or are there downsides?

This would benefit onboarding and training especially in locations with sub-optimal internet connection.

@naftis
Copy link
Collaborator Author

naftis commented Dec 19, 2024

A workaround is to use the --depth flag

git clone https://github.com/opencrvs/opencrvs-countryconfig --depth 10

but not sure if that's a proper solution to close off this issue as the history can be useful while developing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants