Skip to content

Commit

Permalink
fix: hashing file at head - in case there's no error
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrwe committed Feb 13, 2024
1 parent 74132d9 commit 7e64afc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ By default `git-age` will store the private keys in `$XDG_CONFIG_HOME/git-age/ke
| macOS | `$HOME/Library/Application Support/git-age/keys.txt` |
| Windows | `%LOCALAPPDATA%\git-age\keys.txt` |

## Alternatives

- [git-crypt](/AGWA/git-crypt) - based on GPG
- [git-private](/erkkah/git-private) - not a Git clean/smudge filter but encrypts/decrypts on demand

## Development

### Required Tools
Expand Down
6 changes: 1 addition & 5 deletions handlers/cli/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,7 @@ func (h *CleanCliHandler) hashFileAtHead(
if err != nil {
return nil, nil, err
} else if !isEncrypted {
slog.Warn(
"Expected encrypted file but age header is missing",
slog.String("path", path),
slog.String("err", err.Error()),
)
slog.Warn("Expected encrypted file but age header is missing", slog.String("path", path))
} else if r, err := h.OpenSealer.OpenFile(bufReader); err != nil {
return nil, nil, err
} else {
Expand Down

0 comments on commit 7e64afc

Please sign in to comment.