~edwargix/git.sr.ht

6ae1c92c1db727db5ee78e697aeef0295e760f6c — Drew DeVault 4 years ago 0cbe128
stage-3: fix nil dereference
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht-update-hook/stage-3.go
M gitsrht-update-hook/stage-3.go => gitsrht-update-hook/stage-3.go +1 -1
@@ 136,7 136,7 @@ func deleteArtifacts(ctx *PushContext, db *sql.DB, payload *WebhookPayload) {
	}

	for _, ref := range payload.Refs {
		if ref.New != nil {
		if ref.New != nil || ref.Old == nil {
			continue
		}