diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2020-11-21 00:21:41 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2020-11-21 00:21:41 -0700 |
commit | 033d02a6654d9607b283f015801ce57a57935d4c (patch) | |
tree | 21db0002b298410f25f375c7de2aa5d77e99942c | |
parent | 9f24b0d0bfca2938f2471c123074cc5e65eebf8e (diff) |
Fixes
-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")) |