From 033d02a6654d9607b283f015801ce57a57935d4c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 21 Nov 2020 00:21:41 -0700 Subject: Fixes --- parse_fastimport.go | 4 ++++ types.go | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/parse_fastimport.go b/parse_fastimport.go index b01b251..18121a6 100644 --- a/parse_fastimport.go +++ b/parse_fastimport.go @@ -16,6 +16,7 @@ package libfastimport import ( + "io" "strings" "git.lukeshu.com/go/libfastimport/textproto" @@ -118,6 +119,9 @@ func (p *parser) parse() error { for { line, err := p.PeekLine() if err != nil { + if err == io.EOF && p.inCommit { + p.ret_cmd <- CmdCommitEnd{} + } return err } subparser := parser_regular(line) diff --git a/types.go b/types.go index 2a89048..eabd0b0 100644 --- a/types.go +++ b/types.go @@ -38,7 +38,6 @@ type Ident struct { func (ut Ident) String() string { if ut.Name == "" { return fmt.Sprintf("<%s> %d %s", - ut.Name, ut.Email, ut.Time.Unix(), ut.Time.Format("-0700")) -- cgit v1.2.3-54-g00ecf