-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support backends like crypt that don't support file hashes #6
Comments
I will write a patch for this soon-ish. The plan:
This way will save us having to pull in the remote file to figure out whether or not everything is okay, which I don't want as it would be slow and the rclone remotes are slow enough as it is :) |
Thanks for the discussion and ideas! I went ahead and implemented it, and have a rough but working implementation here. This version:
At some point, I'll create a cleaner release. Or if you want me to merge it all in to this repo, do let me know too. |
Released here:
|
looks interesting @redstreet -- thanks for sharing! But could you clarify -- is it backward compatible (could be used for already existing rclone remotes populated with this version) or not? (you mentioned that |
Good question. It is not backward compatible with existing remotes. Migrating a repo is required. However, migrating a repo back and forth between But there's a much easier way, which is to get git to do all the work:
This works for migrations in the opposite direction too. |
rclone
'scrypt
backend does not support hashes. This fails with git-remote-rclone.git-remote-rclone quits because it finds no hash on the server, and assumes the server to be empty. Temporary patch fix: comment out line 150:
if repo_hashes is None: return
This is only a hack, since other parts of the code still fail, or produce extraneous error messages. Also note: an initial
git push
to an empty repo does not work with this patch.This request is to enhance git-remote-rclone to work on backends that don't support hashes. Some ideas and options:
crypt
, this would involve computing the raw underlying file's hashThe text was updated successfully, but these errors were encountered: