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 }