Skip to content

Commit

Permalink
Normalize paths discovered in head_ref tree (#18)
Browse files Browse the repository at this point in the history
Since git always uses POSIX path separators, we need to normalize the
paths we discover by inspecting the `head_ref` tree.
  • Loading branch information
cottsay authored Sep 21, 2024
1 parent 9590b41 commit 7b81baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosdistro_reviewer/element_analyzer/rosdep.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def _get_changed_rosdeps(
if not isinstance(tree, Tree):
return None, None
rosdep_files = [
str(item.path)
str(Path(item.path))
for item in tree.traverse(predicate=_is_yaml_blob)
if isinstance(item, Blob)
]
Expand Down

0 comments on commit 7b81baf

Please sign in to comment.