From 2a7b32c28b92139eb4264e1d458e1d3aa1209bad Mon Sep 17 00:00:00 2001 From: Shelley Shen Date: Fri, 3 Jan 2020 16:12:08 -0500 Subject: [PATCH] small error, last commit doesnt get parsed --- gitLogParser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gitLogParser.py b/gitLogParser.py index a375434..7ffba9d 100755 --- a/gitLogParser.py +++ b/gitLogParser.py @@ -38,6 +38,9 @@ def parseCommit(commitLines): else: print ('ERROR: Unexpected Line: ' + nextLine) + if len(commit) != 0: + commits.append(commit) + if __name__ == '__main__': parseCommit(sys.stdin.readlines())