summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/checkstyle.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index 5a126806..2ba3165b 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -253,6 +253,9 @@ class StagedChanges(Commit):
def __init__(self):
Commit.__init__(self, '')
+ # There are no trailers to parse on a Staged Change.
+ self._trailers = []
+
def _parse(self):
ret = subprocess.run(['git', 'diff', '--staged', '--name-status'],
stdout=subprocess.PIPE).stdout.decode('utf-8')