From: Sergey Matveev <stargrave@stargrave.org>
Date: Wed, 13 Jan 2021 12:27:53 +0000 (+0300)
Subject: Skip comments to possibly unexisting commits
X-Git-Tag: v0.15.0~1
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cc603a331ebac6a15740665c2599a92dd35173d9;p=sgblog.git

Skip comments to possibly unexisting commits
---

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"
 )