From e543eeaf589b51a5ddc1e068b936099678ebfe55 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Wed, 3 Feb 2016 14:22:19 +0100 Subject: [PATCH] Only include valid extensions in blame output (#95). --- gitinspector/blame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitinspector/blame.py b/gitinspector/blame.py index 130c4be..3c964cb 100644 --- a/gitinspector/blame.py +++ b/gitinspector/blame.py @@ -137,7 +137,7 @@ class Blame(object): row = row.encode("latin-1", "replace") row = row.decode("utf-8", "replace").strip("\"").strip("'").strip() - if FileDiff.get_extension(row) in extensions.get_located() and not \ + if FileDiff.get_extension(row) in extensions.get_located() and FileDiff.is_valid_extension(row) and not \ filtering.set_filtered(FileDiff.get_filename(row)): blame_command = filter(None, ["git", "blame", "--line-porcelain", "-w"] + \ (["-C", "-C", "-M"] if hard else []) +