Skip to content

Commit

Permalink
Apply --sources in the diff path as well
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Jul 6, 2023
1 parent 94d5efe commit 23b3a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flux_local/tool/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def create_diff_path(
which is useful when run from CI.
"""
if path_orig := kwargs.get("path_orig"):
yield git_repo.PathSelector(path_orig)
yield git_repo.PathSelector(path_orig, sources=kwargs.get("sources"))
return

with git_repo.create_worktree(selector.repo) as worktree:
Expand Down

0 comments on commit 23b3a74

Please sign in to comment.