Skip to content

Support backends like crypt that don't support file hashes #6

@redstreet

Description

@redstreet

rclone's crypt 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:

  • falling back to downloading the file and computing the hash manually
  • work with a user-supplied function to compute hash. For rclone's crypt, this would involve computing the raw underlying file's hash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions