projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77d372a
)
mklog: skip unsupported files
author
Martin Liska
<mliska@suse.cz>
Thu, 14 Jan 2021 16:06:08 +0000
(17:06 +0100)
committer
Martin Liska
<mliska@suse.cz>
Thu, 14 Jan 2021 16:06:08 +0000
(17:06 +0100)
This fixes an infinite loop one could see for:
git show
b87ec922c40
| ./contrib/mklog.py
contrib/ChangeLog:
* mklog.py: Fix infinite loop for unsupported files.
contrib/mklog.py
patch
|
blob
|
history
diff --git
a/contrib/mklog.py
b/contrib/mklog.py
index bf51e56337e5326dbc569ff5658aa489857448f2..a70536a6849a44b55babcd85cc26faf2b40e8d98 100755
(executable)
--- a/
contrib/mklog.py
+++ b/
contrib/mklog.py
@@
-133,6
+133,9
@@
def generate_changelog(data, no_functions=False, fill_pr_titles=False):
diff = PatchSet(data)
for file in diff:
+ # skip files that can't be parsed
+ if file.path == '/dev/null':
+ continue
changelog = find_changelog(file.path)
if changelog not in changelogs:
changelogs[changelog] = []