From 96d7401f5fb5796e5606e7e275b0edb0df321f11 Mon Sep 17 00:00:00 2001 From: V <78769380+codegod100@users.noreply.github.com> Date: Sat, 11 Mar 2023 23:57:14 -0800 Subject: [PATCH] explictly fail if git can't operate (#194) * explictly fail if git can't operate * Update revision.go --- history/revision.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/history/revision.go b/history/revision.go index 74759c3..c5a6041 100644 --- a/history/revision.go +++ b/history/revision.go @@ -63,8 +63,10 @@ func (stream *recentChangesStream) next(n int) []Revision { // currHash is the last revision from the last call, so skip it args = append(args, "--skip=1", stream.currHash) } - // I don't think this can fail, so ignore the error - res, _ := gitLog(args...) + res, err := gitLog(args...) + if err != nil { + log.Fatal(err) + } if len(res) != 0 { stream.currHash = res[len(res)-1].Hash }