diff options
-rw-r--r-- | parse_fastimport.go | 4 | ||||
-rw-r--r-- | types.go | 1 |
2 files changed, 4 insertions, 1 deletions
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) @@ -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")) |