Skip to content

'clean' filter fails on small files #116

@ljm42

Description

@ljm42

If you try to encrypt a small file (less than 8 chars) it fails:

# git add <filename>
fatal: <filename>: clean filter 'crypt' failed

The problem is with the read command in git_clean():

read -rn 8 firstbytes <"$tempfile"

One solution is to add an or statement like this:

  read -rn 8 firstbytes <"$tempfile" || firstbytes=X

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions