Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Jul 16, 2024
1 parent 298322a commit 026d4a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ci/scripts/find-regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def run_pipeline(env):


def checkout_commit(branch):
cmd = f"git checkout {branch}"
cmd = f"git checkout {branch} -q"
result = subprocess.run([cmd], shell=True)
if result.returncode != 0:
print(f"stderr: {result.stderr}")
Expand All @@ -69,7 +69,7 @@ def checkout_commit(branch):


def checkout_prev():
cmd = f"git checkout -"
cmd = f"git checkout - -q"
result = subprocess.run([cmd], shell=True)
if result.returncode != 0:
print(f"stderr: {result.stderr}")
Expand Down Expand Up @@ -104,8 +104,6 @@ def get_bisect_commit(start, end):

def get_commit_after(branch, commit):
checkout_commit(branch)
cmd = f"git checkout {commit}"
subprocess.run([cmd], shell=True)

cmd = f"git log --reverse --ancestry-path {commit}.. --format=\"%H\" | head -n 1"
print(f"cmd: {cmd}")
Expand Down

0 comments on commit 026d4a0

Please sign in to comment.