Frederick888 / git-credential-keepassxc

Helper that allows Git (and shell scripts) to use KeePassXC as credential store
GNU General Public License v3.0
196 stars 8 forks source link

fix: Ignore unknown keys in input #79

Closed Frederick888 closed 1 year ago

Frederick888 commented 1 year ago

Description

Fixes #78.

Changes

57a7d9c fix: Ignore unknown keys in input

This seems to be an input validation that even I forgot about, as in README it says 'unknown fields are ignored' [1].

For now simply ignoring such fields should be enough to tackle the new wwwauth[] key in Git 2.41.0 [2]. In the future if people complain that these lines are not echoed back, we can consider adding a HashMap<String, Vec> field.

[1] https://github.com/Frederick888/git-credential-keepassxc/blob/5cb8047d6d9684d5c63081cc675fff850f6e221d/README.md?plain=1#L143 [2] https://github.com/git/git/compare/af5388d2ddb0bc7c22fbe698078f4ca07879d954...5f2117b24f568ecc789c677748d70ccd538b16ba

Checklist

Is this a breaking change?

No.