Skip to content

Commit e543eea

Browse files
Only include valid extensions in blame output (#95).
1 parent 6e0365e commit e543eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitinspector/blame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __init__(self, repo, hard, useweeks, changes):
137137
row = row.encode("latin-1", "replace")
138138
row = row.decode("utf-8", "replace").strip("\"").strip("'").strip()
139139

140-
if FileDiff.get_extension(row) in extensions.get_located() and not \
140+
if FileDiff.get_extension(row) in extensions.get_located() and FileDiff.is_valid_extension(row) and not \
141141
filtering.set_filtered(FileDiff.get_filename(row)):
142142
blame_command = filter(None, ["git", "blame", "--line-porcelain", "-w"] + \
143143
(["-C", "-C", "-M"] if hard else []) +

0 commit comments

Comments
 (0)