Skip to content

Commit

Permalink
Fix culprit_finder.py
Browse files Browse the repository at this point in the history
Was broken by fb86f67#diff-ba450f780cf9b79ec952dac692ad5b13fddfcbfbb599acd623a374c35433b660R238 changing the current directory to the project dir
  • Loading branch information
meteorcloudy authored Jan 12, 2024
1 parent 9a93c43 commit 831f3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildkite/culprit_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def main(argv=None):
if not bad_bazel_commit:
# If BAD_BAZEL_COMMIT is not set, use HEAD commit.
bad_bazel_commit = (
subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("utf-8").strip()
subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=BAZEL_REPO_DIR).decode("utf-8").strip()
)
except KeyError as e:
raise Exception("Environment variable %s must be set" % str(e))
Expand Down

0 comments on commit 831f3ce

Please sign in to comment.