From cc603a331ebac6a15740665c2599a92dd35173d9 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 13 Jan 2021 15:27:53 +0300 Subject: [PATCH] Skip comments to possibly unexisting commits --- cmd/sgblog/http.go | 2 +- common.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index ce4bdcc..bad1cb8 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -625,7 +625,7 @@ func serveHTTP() { )) commit, err = repo.CommitObject(commentedHash) if err != nil { - makeErr(err) + continue } comments := parseComments(getNote(t, commentedHash)) if len(comments) == 0 { diff --git a/common.go b/common.go index 255aa31..3002596 100644 --- a/common.go +++ b/common.go @@ -2,6 +2,6 @@ package sgblog const ( - Version = "0.14.0" + Version = "0.15.0" WhenFmt = "2006-01-02 15:04:05Z07:00" ) -- 2.48.1