summaryrefslogtreecommitdiff
path: root/gitlog.py
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2013-08-29 12:15:48 -0600
committerJonathan Corbet <corbet@lwn.net>2013-08-29 12:15:48 -0600
commitaa316f182d468d61267b28e3faf77876fcab93dc (patch)
treecff79575d3fd39469793e7067f55f6f6add5f103 /gitlog.py
parent644381cc1184b36fb52687fdb16370a29e10e198 (diff)
Various tweaks and fixes
Diffstat (limited to 'gitlog.py')
-rw-r--r--gitlog.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlog.py b/gitlog.py
index 90975ef..8b8d523 100644
--- a/gitlog.py
+++ b/gitlog.py
@@ -196,8 +196,9 @@ def grabpatch(input):
while state != S_DONE:
line = getline(input)
if line is None:
- if state != S_TAGS:
- print 'Ran out of patch'
+ if state != S_NUMSTAT:
+ print 'Ran out of patch', state
+ return None
return p
state = grabbers[state](p, line, input)
return p