diff --git a/git/hook/refupdate.go b/git/hook/refupdate.go index 2ca56974e..ae440ff28 100644 --- a/git/hook/refupdate.go +++ b/git/hook/refupdate.go @@ -166,10 +166,6 @@ func (u *RefUpdater) Init(ctx context.Context, refs []ReferenceUpdate) error { }) } - if len(refs) > 0 && len(u.refs) == 0 { - return errors.New("updating zero references") - } - sort.Slice(u.refs, func(i, j int) bool { return u.refs[i].Ref < u.refs[j].Ref })