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

Make 'fetch' command faster, like rsync #705

Open
techieshark opened this issue Jun 16, 2022 · 0 comments
Open

Make 'fetch' command faster, like rsync #705

techieshark opened this issue Jun 16, 2022 · 0 comments

Comments

@techieshark
Copy link

Description and Context

Could the hs fetch command be made to run faster? Seems like it should operate more like rsync where it would only copy files that differ. It is taking over a minute and a half to pull down the files. Note, I need to use the --overwrite argument in order to fetch all the differences and that seems to make it take much longer.

I'm using CLI version 4.0.0.

The specific use case here is I have a CI system that checks for differences between a git branch and Hubspot. I would like to have a cached copy of the Hubspot files, then run the hs fetch command to update any files in the cache that differ, then I would run git diff to check for changes between the branch and the Hubspot files. Obviously, having this take 1.5 minutes is not awesome for the developer experience.

Steps to reproduce

Run hs fetch --overwrite / path-to-your-files/

Expected behavior

If the local & remote files are mostly identical, it should take very little time (a few seconds at most).

The time it takes would increase proportionally to the number of differences.

Screenshots

Who to Notify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant