Previously it would trigger a wrong-number-of-arguments error for
'lset-intersection'.
* guix/git-authenticate.scm (commit-authorized-keys): Add case for when
'commit-parents' returns the empty list.
default-authorizations)
(throw key error)))))
- (apply lset-intersection bytevector=?
- (map commit-authorizations (commit-parents commit))))
+ (match (commit-parents commit)
+ (() default-authorizations)
+ (parents
+ (apply lset-intersection bytevector=?
+ (map commit-authorizations parents)))))
(define* (authenticate-commit repository commit keyring
#:key (default-authorizations '()))