Skip to content

Commit

Permalink
change filename
Browse files Browse the repository at this point in the history
  • Loading branch information
richagadgil committed Dec 20, 2024
1 parent 454bfab commit ff0490d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/check_stamped.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ def eval(cmd, **kwargs):
def get_head():
return eval("git rev-parse --abbrev-ref HEAD")

def get_merge_base(branch):
head = get_head()
return eval(f"git merge-base {branch} {head}")
def get_merge_base(against, branch):
return eval(f"git merge-base {against} {branch}")

def get_files_changed(against, ext=('.py')):
files = eval(
Expand All @@ -141,7 +140,7 @@ def get_files_changed(against, ext=('.py')):
def main(branch) -> None:
unsupported_file_types.extend(specificIgnores)

base = get_merge_base("origin/develop")
base = get_merge_base("origin/develop", branch)
fileList = list(
get_files_changed(base,
ext=supported_file_types))
Expand Down

0 comments on commit ff0490d

Please sign in to comment.