Skip to content

Commit

Permalink
Update branch converter to use '-branchless-' for None values for rea…
Browse files Browse the repository at this point in the history
…sonable sorting of file names and folders
  • Loading branch information
fabianliebig committed Feb 7, 2025
1 parent 5152c64 commit a6a3705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/persistence/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class PathConstructor:

branch: str = field(
validator=instance_of(str),
converter=lambda x: "branchless" if x is None else x,
converter=lambda x: "-branchless-" if x is None else x,
)
"""The branch checked out at benchmark execution time.
In case of detached head state the branch is set to 'branchless'."""
Expand Down

0 comments on commit a6a3705

Please sign in to comment.