summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2020-11-21 00:21:41 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2020-11-21 00:21:41 -0700
commit033d02a6654d9607b283f015801ce57a57935d4c (patch)
tree21db0002b298410f25f375c7de2aa5d77e99942c
parent9f24b0d0bfca2938f2471c123074cc5e65eebf8e (diff)
Fixes
-rw-r--r--parse_fastimport.go4
-rw-r--r--types.go1
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)
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"))