From d2889fdef62ecc219e7a4e3a19595c8c55f91bef Mon Sep 17 00:00:00 2001 From: Tomas Kikutis Date: Fri, 20 Dec 2024 12:44:33 +0100 Subject: [PATCH] test --- grep-lint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grep-lint.py b/grep-lint.py index df781d457d..ecfa9c622e 100644 --- a/grep-lint.py +++ b/grep-lint.py @@ -69,7 +69,7 @@ def get_command(branch=None): try: violations_count_develop = len( - subprocess.check_output(get_command("develop")).decode('utf-8').splitlines() + subprocess.check_output(get_command("origin/develop")).decode('utf-8').splitlines() ) except subprocess.CalledProcessError as e: # ignore exception if grep simply didn't find matches @@ -97,6 +97,6 @@ def get_command(branch=None): print("Rule regex: `" + rule_regex + "`") if rule_tolerance is True: - print('Tolerance is enabled, but ' + str(violations_count) + ' violations were found in the working while there only are ' + str(violations_count_develop) + ' violations on develop. See grep-lint.py for details.') + print('Tolerance is enabled, but ' + str(violations_count) + ' violations were found on this commit while there only are ' + str(violations_count_develop) + ' violations on develop. See grep-lint.py for details.') sys.exit(1 if any_rule_violated else 0)