Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plumbing: packp, Avoid duplicate encoding when overriding a Capabilit…
…y value. (go-git#521) Previously, calling `Set($CAPABILITY, ...)` on a `capability.List` where `$CAPABILITY` was already present would correctly replace the existing value of that capability, but would also result in that capability being listed twice in the internal `l.sort` slice. This manifested publicly when the `List` was encoded as the same capability appearing twice with the same value in the encoded output. (cherry picked from commit 69aa78a)
- Loading branch information