From eddfd776082a3bbfbeab663d1e540d51c7984845 Mon Sep 17 00:00:00 2001 From: "joaquin.f.fernandez" Date: Wed, 17 Apr 2024 15:45:58 -0300 Subject: [PATCH] Updated commit hook. --- .hooks/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.hooks/pre-commit b/.hooks/pre-commit index ccaa151b..bd7af32b 100755 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -3,8 +3,8 @@ import subprocess def get_files(): - return subprocess.check_output(['git', 'diff-index','--cached', - '--name-only', 'HEAD']).split() + return [i.decode("utf-8") for i in subprocess.check_output(['git', 'diff-index','--cached', + '--name-only', 'HEAD']).split()] def apply_code_style(): files = filter(lambda x: x.find('tests/system/gt_data') == -1, get_files())