Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Dec 20, 2024
1 parent ecad920 commit d2889fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grep-lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit d2889fd

Please sign in to comment.