summaryrefslogtreecommitdiff
path: root/parse_fastimport.go
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 /parse_fastimport.go
parent9f24b0d0bfca2938f2471c123074cc5e65eebf8e (diff)
Fixes
Diffstat (limited to 'parse_fastimport.go')
-rw-r--r--parse_fastimport.go4
1 files changed, 4 insertions, 0 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)