Skip to content

Commit

Permalink
fixup! Add persistence capability for benchmarking results on AWS S3 …
Browse files Browse the repository at this point in the history
…from manual pipeline run

Add docstring to _default_branch method
  • Loading branch information
fabianliebig committed Nov 25, 2024
1 parent 8318e6c commit 5a007b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/result/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ResultMetadata(BenchmarkSerialization):

@branch.default
def _default_branch(self) -> str:
"""Set the current checkout branch."""
repo = git.Repo(search_parent_directories=True)
current_branch = repo.active_branch.name
return current_branch
Expand Down

0 comments on commit 5a007b5

Please sign in to comment.